MCPcopy Create free account
hub / github.com/Noumena-Network/code / buildInputSchema

Function buildInputSchema

src/tools/REPLTool/javascriptReplFactory.tsx:81–95  ·  view source on GitHub ↗
(description: InputSchemaDescription)

Source from the content-addressed store, hash-verified

79}
80
81function buildInputSchema(description: InputSchemaDescription) {
82 return lazySchema(() =>
83 z.strictObject({
84 code: z.string().describe(description.codeDescription),
85 timeout_ms: z
86 .number()
87 .int()
88 .min(1)
89 .max(MAX_TIMEOUT_MS)
90 .optional()
91 .default(DEFAULT_TIMEOUT_MS)
92 .describe(`Maximum execution time in milliseconds (1-${MAX_TIMEOUT_MS})`),
93 }),
94 )
95}
96
97function buildOutputSchema() {
98 return lazySchema(() =>

Callers 1

createJavascriptReplToolFunction · 0.70

Calls 3

lazySchemaFunction · 0.85
defaultMethod · 0.80
maxMethod · 0.80

Tested by

no test coverage detected