Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.
A call to a custom (freeform-grammar) tool created by the model — distinct from function_call. Used for tools like Codex CLI’s apply_patch whose payload is opaque text rather than JSON arguments.

Fields

FieldTypeRequiredDescription
CallIDstring:heavy_check_mark:N/A
ID*string:heavy_minus_sign:N/A
Inputstring:heavy_check_mark:N/A
Namestring: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)
Typecomponents.CustomToolCallItemType:heavy_check_mark:N/A