ToolSearch: {
    description?: string;
    execution?: Execution;
    name?: string;
    parameters?: any;
    type: "tool_search";
}

A tool that allows the model to dynamically search for and load tools into

Type declaration

  • Optionaldescription?: string

    A description of the function. To be set only for client-side execution.

  • Optionalexecution?: Execution

    The execution mode of the tool search.

  • Optionalname?: string

    The name of the function. To be set only for client-side execution.

  • Optionalparameters?: any

    The JSON Schema for the function's parameters. To be set only for

    client-side execution.

  • type: "tool_search"

the model’s context on demand. This allows clients to avoid loading all tool definitions up front and may help reduce overall token usage and cost.