The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { OpenAIResponseCustomToolCall } from "@openrouter/sdk/models";
let value: OpenAIResponseCustomToolCall = {
callId: "call-abc123",
input: "*** Begin Patch\n*** End Patch",
name: "apply_patch",
type: "custom_tool_call",
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
callId | string | :heavy_check_mark: | N/A |
id | string | :heavy_minus_sign: | N/A |
input | string | :heavy_check_mark: | N/A |
name | string | :heavy_check_mark: | N/A |
namespace | string | :heavy_minus_sign: | Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server) |
type | models.OpenAIResponseCustomToolCallType | :heavy_check_mark: | N/A |