CallToolResult class
Tool call result. Spec 2025-06-18 added structuredContent
(paired with Tool.outputSchema).
- Annotations
-
- @immutable
Constructors
-
CallToolResult(List<
Content> content, {Map<String, dynamic> ? structuredContent, @Deprecated('See CallToolResult.isStreaming — removed in 3.0.') bool isStreaming = false, bool? isError}) -
const
-
CallToolResult.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
content
→ List<
Content> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isError → bool?
-
final
- isStreaming → bool
-
NON-STANDARD (makemind) legacy hint. Not part of the MCP
CallToolResultspec and honored nowhere. The standard pattern is: enable streaming with a tool (tools/call) and deliver the stream via a reactive resource (subscriptions/listenon 2026-07-28,resources/subscribeon ≤2025-11-25). Retained + still serialized for backward compatibility; slated for removal in the next major (3.0).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
structuredContent
→ Map<
String, dynamic> ? -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited