Skip to content

ToolResultMeta

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  1353323399["messages.ToolResultMeta"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 1353323399
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Per-tool-result metadata attached to user messages (internal, display only).

Source code in src/clawd_code_sdk/models/messages.py
class ToolResultMeta(TypedDict):
    """Per-tool-result metadata attached to user messages (internal, display only)."""

    id: str
    non_execution_kind: NotRequired[str]
    """Why an ``is_error`` result holds no output of the tool's own: ``user-rejected``,
    ``permission-rule``, ``automode-*``, ``interrupted`` or ``cancelled`` (CLI 2.1.330+)."""
    user_feedback: NotRequired[str]
    remedy: NotRequired[Any]
    """How to get past a refusal (shape not published)."""
    permission_decision: NotRequired[ToolPermissionDecisionMeta]
    built_in_tool: NotRequired[str]
    run_input: NotRequired[str]

non_execution_kind instance-attribute

non_execution_kind: NotRequired[str]

Why an is_error result holds no output of the tool's own: user-rejected, permission-rule, automode-*, interrupted or cancelled (CLI 2.1.330+).

remedy instance-attribute

remedy: NotRequired[Any]

How to get past a refusal (shape not published).

:fa-brands-github: Show source on GitHub