id: String

The unique ID of the tool call.

arguments: String

A JSON string of the arguments passed to the tool.

name: String

The name of the tool that was run.

server_label: String

The label of the MCP server running the tool.

type: :mcp_call

The type of the item. Always mcp_call.

agent: Agent{ agent_name}

The agent that produced this item.

agent_name: String

The canonical name of the agent that produced this item.

approval_request_id: String

Unique identifier for the MCP tool call approval request. Include this value in a subsequent mcp_approval_response input to approve or reject the corresponding tool call.

The error from the tool call, if any.

One of the following:
class McpProtocolError { code, message, type }
code: Integer
message: String
type: :mcp_protocol_error
class McpToolExecutionError { content, type }
content: untyped
type: :mcp_tool_execution_error
class HTTPError { code, message, type }
code: Integer
message: String
type: :http_error
output: String

The output from the tool call.

status: :in_progress | :completed | :incomplete | 2 more

The status of the tool call. One of in_progress, completed, incomplete, calling, or failed.

One of the following:
:in_progress
:completed
:incomplete
:calling
:failed