Skip to content

FunctionToolConfig

Defined in: src/tools/function-tool.ts:59

Configuration options for creating a FunctionTool.

name: string;

Defined in: src/tools/function-tool.ts:61

The unique name of the tool


description: string;

Defined in: src/tools/function-tool.ts:63

Human-readable description of the tool’s purpose


optional inputSchema: JSONSchema7;

Defined in: src/tools/function-tool.ts:65

JSON Schema defining the expected input structure. If omitted, defaults to an empty object schema.


callback: FunctionToolCallback;

Defined in: src/tools/function-tool.ts:67

Function that implements the tool logic