/** * Actual HTTP request configuration for this REST tool. * Does not use top-level `parameters`, `path_params`, standalone `query`, * `response`, `json_path`, or `max_chars`. */ export interface LlmToolServer { /** HTTP method. Must be `GET` or `POST`. */ method: LlmToolServer.Method; /** * Full request URL. Write path and query templates directly in the URL. * Placeholders allowed: `{{args.}}`, `{{template_variables.}}`, * and `{{tool_call_id}}`. URL values may be string, number, or boolean. */ url: string; /** * Request headers as a string dictionary. * Each header value must be a constant or exactly one placeholder. * Placeholders allowed: `{{template_variables.}}` and `{{tool_call_id}}`. * `{{args.*}}` is not allowed in headers. */ headers?: Record; /** * POST JSON body template. Must not be configured for `GET` requests. * Supports arbitrary nested JSON. Only fields declared in `server.body` are sent. * Leaf values may be constants or exactly one of `{{args.}}`, * `{{template_variables.}}`, or `{{tool_call_id}}`. * JSON body preserves original types after rendering. */ body?: Record; /** Request timeout in milliseconds. Defaults to `10000`. Valid range is `1000` to `100000`. */ timeout_ms?: number; /** Accepts any additional properties */ [key: string]: any; } export declare namespace LlmToolServer { /** HTTP method. Must be `GET` or `POST`. */ const Method: { readonly Get: "GET"; readonly Post: "POST"; }; type Method = (typeof Method)[keyof typeof Method]; }