Callback for an app-registered tool. When In is provided, args is the
validated/parsed input; when In is undefined, the callback receives only
extra. When Out is provided, the return's structuredContent is typed.
Mirrors ToolCallback from @modelcontextprotocol/sdk/server/mcp.js but is
parameterized over StandardSchemaV1 instead of zod, so any
Standard-Schema-compatible library (Zod, ArkType, Valibot, …) can be used.
Callback for an app-registered tool. When
Inis provided,argsis the validated/parsed input; whenInisundefined, the callback receives onlyextra. WhenOutis provided, the return'sstructuredContentis typed.Mirrors
ToolCallbackfrom@modelcontextprotocol/sdk/server/mcp.jsbut is parameterized over StandardSchemaV1 instead of zod, so any Standard-Schema-compatible library (Zod, ArkType, Valibot, …) can be used.