Skip to content

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.

name: string;

Defined in: src/tools/types.ts:17

The unique name of the tool.


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.


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.