Skip to main content
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

import { CustomToolCallOutputItem } from "@openrouter/sdk/models";

let value: CustomToolCallOutputItem = {
  callId: "call-abc123",
  output: "patch applied successfully",
  type: "custom_tool_call_output",
};

Fields

FieldTypeRequiredDescription
callIdstring:heavy_check_mark:N/A
idstring:heavy_minus_sign:N/A
outputmodels.CustomToolCallOutputItemOutputUnion2:heavy_check_mark:N/A
typemodels.CustomToolCallOutputItemTypeCustomToolCallOutput:heavy_check_mark:N/A