Practic Force Directed - v1.0.0
    Preparing search index...

    Interface ModelContextTool

    A tool a page offers to agents. The browser parses the agent's arguments from JSON, validated against inputSchema.

    interface ModelContextTool {
        annotations?: ModelContextToolAnnotations;
        description: string;
        execute: (
            input: JsonObject,
            options: { signal: AbortSignal },
        ) => PersistValue | Promise<PersistValue>;
        inputSchema?: JsonObject;
        name: string;
        title?: string;
    }
    Index
    description: string
    execute: (
        input: JsonObject,
        options: { signal: AbortSignal },
    ) => PersistValue | Promise<PersistValue>

    Runs the tool; the browser serializes the returned value to JSON for the agent.

    inputSchema?: JsonObject

    JSON Schema of the arguments object.

    name: string
    title?: string