CustomToolCallItem - Go SDK

CustomToolCallItem type definition

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✔️N/A
ID*stringN/A
Inputstring✔️N/A
Namestring✔️N/A
Namespace*stringNamespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server)
Typecomponents.CustomToolCallItemType✔️N/A