Documentation / @agentick/shared / ToolCall
Interface: ToolCall
Defined in: tools.ts:97
Tool call - represents a tool call made by the model.
Used in streaming, execution tracking, and message content.
Properties
id
id:
string
Defined in: tools.ts:99
Unique ID for this tool call (correlates with tool_result)
input
input:
Record<string,unknown>
Defined in: tools.ts:103
Tool input parameters
name
name:
string
Defined in: tools.ts:101
Tool name
result?
optionalresult:ToolResult
Defined in: tools.ts:105
Result of tool execution (present after execution)
ui?
optionalui:object
Defined in: tools.ts:114
MCP App UI metadata — present when this tool call should mount an app. Populated by the host/session when the tool's definition has ui.resourceUri.
The content field contains the resolved app HTML (fetched from the MCP server's resources). The appSessionId is a unique identifier for routing bidirectional messages between the app and the server-side AppBridge.
appSessionId
appSessionId:
string
Unique session ID for this app instance (routing key for bridge messages)
content?
optionalcontent:string
Resolved app HTML content (self-contained, ready for iframe srcdoc)
resourceUri
resourceUri:
string
The ui:// resource URI