Skip to main content

ClientToolResult

Result submitted by the caller for a client-side tool call. Both tool_call_id and tool_name must identify the same pending call. When submission reaches workflow validation, either missing value causes a 400 response. Copy the call's id and name into these result fields, rather than submitting the pending ToolCall unchanged.

Usage profiles​

UsageFields and validation
In requestsView fields

In requests​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
toolCallIdstringOptionalRequired call identifier, copied from the pending ToolCall.id.
toolNamestringOptionalRequired tool name, copied from the pending ToolCall.name.
resultJsonMap from string to JSON valueOptionalStructured output for a matched pending call. A nonempty object records COMPLETED; an empty or omitted object records FAILED, including when the client could not complete the action.
errorRpcErrorOptionalSupplied error detail. The current result handler does not consume this field; the presence of a nonempty result_json alone determines whether the tool is recorded as completed.

Where used​

ReferenceRelationship
Submit client-side tool execution resultsPOST /api/v1/llm/submit-client-tool-results
Submit client-side tool results and wait for the next segmentPOST /api/v1/llm/submit-client-tool-results-sync

Download the public reference contract.

Document: DOC-API-MODEL-client-tool-result.