An invocation of a tool on an MCP server.

interface McpCall {
    arguments: string;
    error?: null | string;
    id: string;
    name: string;
    output?: null | string;
    server_label: string;
    type: "mcp_call";
}

Properties

arguments: string

A JSON string of the arguments passed to the tool.

error?: null | string

The error from the tool call, if any.

id: string

The unique ID of the tool call.

name: string

The name of the tool that was run.

output?: null | string

The output from the tool call.

server_label: string

The label of the MCP server running the tool.

type: "mcp_call"

The type of the item. Always mcp_call.