Skip to main content

ToolCallContent

Tool/function call request from the LLM.

Fields

modality
str
required
Must be "tool-call".
index
int
required
Zero-based index of the tool call. Minimum: 0.
id
str
required
Unique identifier for this tool call.
name
str
required
Name of the function to call.
arguments
str
required
JSON-encoded string of function arguments.
server_name
str | None
Optional MCP server name. Aliased as serverName in JSON.

Example

JSON: