MCPServerToolResultStep: {
    call_id: string;
    name?: string;
    result: MCPServerToolResultStepResult | string | FunctionResultSubcontent[];
    server_name?: string;
    type: "mcp_server_tool_result";
}

MCPServer tool result step.

Type declaration

  • call_id: string

    Required. ID to match the ID from the function call block.

  • Optionalname?: string

    Name of the tool which is called for this specific tool call.

  • result: MCPServerToolResultStepResult | string | FunctionResultSubcontent[]

    The output from the MCP server call. Can be simple text or rich content.

  • Optionalserver_name?: string

    The name of the used MCP server.

  • type: "mcp_server_tool_result"