MCPcopy
hub / github.com/MiniMax-AI/cli / getSchema

Function getSchema

test/commands/config/export-schema.test.ts:8–11  ·  view source on GitHub ↗
(cmdName: string)

Source from the content-addressed store, hash-verified

6type ToolSchema = { name: string; description?: string; input_schema: JsonSchema };
7
8function getSchema(cmdName: string): ToolSchema {
9 const { command } = registry.resolve(cmdName.split(' '));
10 return generateToolSchema(command) as unknown as ToolSchema;
11}
12
13function is(input: unknown): JsonSchema {
14 return input as JsonSchema;

Callers 1

Calls 2

generateToolSchemaFunction · 0.90
resolveMethod · 0.80

Tested by

no test coverage detected