ADK for TypeScript: API Reference
    Preparing search index...

    Interface WebMCPRegisteredTool

    A tool as reported by document.modelContext.getTools().

    interface WebMCPRegisteredTool {
        annotations?: WebMCPToolAnnotations;
        description?: string;
        inputSchema?: string | object;
        name: string;
        origin?: string;
        title?: string;
    }

    Properties

    annotations?: WebMCPToolAnnotations
    description?: string
    inputSchema?: string | object

    JSON Schema for the tool's arguments.

    Typed loosely on purpose: the specification says object, but browsers have been observed handing back a JSON string, and a schema that is silently misread leaves the model unable to pass any arguments at all.

    name: string
    origin?: string
    title?: string