crafty_list_schemas
List all available JSON schema names in Crafty Controller without requiring authentication.
Instructions
List all available JSON schema names in Crafty Controller. Does not require authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/auth.ts:43-56 (handler)The handler for the crafty_list_schemas tool, which fetches JSON schema information from the Crafty Controller.
server.tool( "crafty_list_schemas", "List all available JSON schema names in Crafty Controller. Does not require authentication.", {}, async () => { try { const data = await client.get("/jsonschema"); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [{ type: "text", text: `Error: ${msg}` }], isError: true }; } } );