ToolCallContent
Tool/function call request from an LLM with arguments and metadata.Import
Type Definition
Fields
string
required
Must be
"tool-call".number
required
Zero-based index of the tool call. Minimum: 0.
string
required
Unique identifier for this tool call.
string
required
Name of the function to call.
string
required
JSON-encoded string of function arguments.
string | null
Optional MCP server name associated with this tool call.
Example
Related
- ToolResponseContent — the corresponding response for a tool call
- MessageContent — union type that includes
ToolCallContent - ToolFunction — defines the tool schema that produces tool calls