Stone.js API
    Preparing search index...

    A tool definition exposed to the agent over MCP. The handler runs in-process (the dev server hands the SDK the callback directly): these are framework-knowledge and dev helpers, not your domain, so they do not traverse the kernel.

    interface McpToolDef {
        description?: string;
        handler: (args: Record<string, unknown>) => unknown;
        inputSchema?: ZodRawShape;
        name: string;
    }
    Index
    description?: string
    handler: (args: Record<string, unknown>) => unknown
    inputSchema?: ZodRawShape

    The arguments the tool accepts, as a Zod shape ({ query: z.string() }).

    Required for any tool whose handler reads args: a tool that publishes no schema is advertised as taking none, and an MCP client drops the arguments before sending them, so the handler runs with {} and there is no error anywhere to say so.

    name: string