CustomToolCallOutputItem - TypeScript SDK

CustomToolCallOutputItem type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

The output from a custom (freeform-grammar) tool call execution. Mirrors function_call_output but is matched to a custom_tool_call rather than a function_call.

Example Usage

1import { CustomToolCallOutputItem } from "@openrouter/sdk/models";
2
3let value: CustomToolCallOutputItem = {
4 callId: "call-abc123",
5 output: "patch applied successfully",
6 type: "custom_tool_call_output",
7};

Fields

FieldTypeRequiredDescription
callIdstring✔️N/A
idstringN/A
outputmodels.CustomToolCallOutputItemOutputUnion2✔️N/A
typemodels.CustomToolCallOutputItemTypeCustomToolCallOutput✔️N/A