Skip to content

HttpToolConfig

HTTP tool configuration

optional auth?: AuthConfig;

Authentication config


optional bodyParams?: HttpParam[];

Body parameters (for POST/PUT/PATCH)


description: string;

Description helps LLM understand when to use this tool


optional errorMessages?: Record<string, string>;

Custom error messages


optional headers?: Record<string, string>;

Request headers


method: HttpMethod;

HTTP method


name: string;

Tool name (used as function name by LLM)


optional pathParams?: HttpParam[];

Path parameters (substituted in URL)


optional queryParams?: HttpParam[];

Query parameters (appended to URL)


optional timeoutMs?: number;

Request timeout in ms


url: string;

URL with optional path params like {id}