ToolUseContent extension type
A request from the assistant to call a tool.
From the 2025-11-25 revision.
- on
- Implemented types
Constructors
Properties
- id → String
-
The unique identifier for this tool use.
no setter
-
input
→ Map<
String, Object?> -
The arguments to pass to the tool.
no setter
- isToolResult → bool
-
Whether or not this is a ToolResultContent.
no setterinherited
- isToolUse → bool
-
Whether or not this is a ToolUseContent.
no setterinherited
- meta → Meta?
-
The
_metaproperty/parameter is reserved by MCP to allow clients and servers to attach additional metadata to their interactions.no setterinherited - name → String
-
The name of the tool to call.
no setter
- type → String
-
The content type, always expectedType.
no setter
Constants
- expectedType → const String