Skip to main content
Version: 1.x

CreateToolOptions

CreateToolOptions​

Configuration options for creating an AI tool.

Signature
interface CreateToolOptions<T extends ToolParameterType, R = unknown, C extends JSONSchema7 = JSONSchema7> {
name: string;
description: string;
inputSchema: T;
contextSchema?: C;
execute: ToolExecuteFunction<T, R>;
}

name​

property
string

The unique name identifier for the tool

description​

property
string

A human-readable description of what the tool does

inputSchema​

property
T

The parameter schema that defines the tool's input structure

contextSchema​

property
C

The context schema for this tool

execute​

property

The function that executes when the tool is called