ToolCallContent
Tool/function call request from an LLM with arguments and metadata.Import
Type Definition
Fields
Must be
"tool-call".Zero-based index of the tool call. Minimum: 0.
Unique identifier for this tool call.
Name of the function to call.
JSON-encoded string of function arguments.
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