InputItemMcpToolCall interface

An invocation of a tool on an MCP server.

Extends

Properties

approval_request_id
arguments

A JSON string of the arguments passed to the tool.

error
id

The unique ID of the tool call.

name

The name of the tool that was run.

output
server_label

The label of the MCP server running the tool.

status

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

type

The type of the item. Always mcp_call.

Property Details

approval_request_id

approval_request_id?: string

Property Value

string

arguments

A JSON string of the arguments passed to the tool.

arguments: string

Property Value

string

error

error?: string

Property Value

string

id

The unique ID of the tool call.

id: string

Property Value

string

name

The name of the tool that was run.

name: string

Property Value

string

output

output?: string

Property Value

string

server_label

The label of the MCP server running the tool.

server_label: string

Property Value

string

status

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

status?: MCPToolCallStatus

Property Value

type

The type of the item. Always mcp_call.

type: "mcp_call"

Property Value

"mcp_call"