MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / ToolResult

Class ToolResult

src/tool_system/protocol.py:18–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17@dataclass(frozen=True)
18class ToolResult:
19 name: str
20 output: Any
21 is_error: bool = False
22 tool_use_id: Optional[str] = None
23 content_type: Literal["text", "json"] = "json"
24 new_messages: list[Any] | None = None
25 context_modifier: Callable[["ToolContext"], "ToolContext"] | None = None
26 mcp_meta: dict[str, Any] | None = None
27
28 @property
29 def data(self) -> Any:
30 return self.output

Callers 15

_call_toolFunction · 0.90
_async_callFunction · 0.90
_callMethod · 0.90
_callFunction · 0.90
_callMethod · 0.90
_callMethod · 0.90
test_hint_appendedMethod · 0.90
_callFunction · 0.90
callMethod · 0.90
first_callMethod · 0.90
second_callMethod · 0.90

Calls

no outgoing calls

Tested by 15

_callMethod · 0.72
_callMethod · 0.72
test_hint_appendedMethod · 0.72
_callFunction · 0.72
callMethod · 0.72
first_callMethod · 0.72
second_callMethod · 0.72
_noop_callFunction · 0.72