function_call. Used for tools like Codex CLI’s apply_patch whose payload is opaque text rather than JSON arguments.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
CustomToolCallItem type definition
function_call. Used for tools like Codex CLI’s apply_patch whose payload is opaque text rather than JSON arguments.
import { CustomToolCallItem } from "@openrouter/sdk/models";
let value: CustomToolCallItem = {
callId: "call-abc123",
input: "*** Begin Patch\n*** End Patch",
name: "apply_patch",
type: "custom_tool_call",
};
| 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.CustomToolCallItemType | :heavy_check_mark: | N/A |