ToolSpec
Defined in: src/tools/types.ts:13
Specification for a tool that can be used by the model. Defines the tool’s name, description, and input schema.
Properties
Section titled “Properties”name: string;Defined in: src/tools/types.ts:17
The unique name of the tool.
description
Section titled “description”description: string;Defined in: src/tools/types.ts:23
A description of what the tool does. This helps the model understand when to use the tool.
inputSchema?
Section titled “inputSchema?”optional inputSchema: JSONSchema7;Defined in: src/tools/types.ts:29
JSON Schema defining the expected input structure for the tool. If omitted, defaults to an empty object schema allowing no input parameters.