Skip to main content

ToolCallContent

Tool/function call request from an LLM with arguments and metadata.

Import

Type Definition

Fields

modality
string
required
Must be "tool-call".
index
number
required
Zero-based index of the tool call. Minimum: 0.
id
string
required
Unique identifier for this tool call.
name
string
required
Name of the function to call.
arguments
string
required
JSON-encoded string of function arguments.
serverName
string | null
Optional MCP server name associated with this tool call.

Example

JSON: