Skip to content

FunctionToolConfig

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

Configuration options for creating a FunctionTool.

name: string;

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

The unique name of the tool


description: string;

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

Human-readable description of the tool’s purpose


optional inputSchema: JSONSchema7;

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

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


callback: FunctionToolCallback;

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

Function that implements the tool logic