Skip to content

ClaudeCodeToolMeta

Base classes

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

⋔ Inheritance diagram

graph TD
  95970871541568["field_meta.ClaudeCodeToolMeta"]
  125067848556736["builtins.dict"]
  125067848591872["builtins.object"]
  125067848556736 --> 95970871541568
  125067848591872 --> 125067848556736

🛈 DocStrings

Bases: TypedDict

Claude Code-specific metadata attached to tool call updates.

Produced by claude-agent-acp (ToolUpdateMeta.claudeCode in src/tool-calls/renderer.ts).

Source code in src/aclientp/schema/field_meta.py
class ClaudeCodeToolMeta(TypedDict, total=False):
    """Claude Code-specific metadata attached to tool call updates.

    Produced by claude-agent-acp (``ToolUpdateMeta.claudeCode`` in
    ``src/tool-calls/renderer.ts``).
    """

    toolName: str
    """The Claude Code tool name (e.g. ``Bash``, ``Edit``, ``Read``).

    Also carried as the standard ACP ``name`` field on the initial ``tool_call``.
    """

    toolResponse: Any
    """Structured output from the tool execution.

    JetBrains AIR clients only get its ``status`` / ``isAsync`` markers; the
    tool output itself is in the tool call content.
    """

    parentToolUseId: str
    """For a tool call made inside a subagent: the tool use id of the
    ``Agent`` / ``Task`` call that spawned the subagent."""

    nonExecutionKind: str
    """On a ``failed`` ``tool_call_update``: why the tool never ran.

    An open set, e.g. ``user-rejected``, ``permission-rule``, ``interrupted``,
    ``cancelled``, ``automode-*``. Absent when the tool executed, including
    real failures.
    """

    userFeedback: str
    """Text the user gave when rejecting the call. Only with ``nonExecutionKind``."""

    mcpServer: McpServerInfo
    """The MCP server of an ``mcp__*`` tool, on a permission request."""

mcpServer instance-attribute

mcpServer: McpServerInfo

The MCP server of an mcp__* tool, on a permission request.

nonExecutionKind instance-attribute

nonExecutionKind: str

On a failed tool_call_update: why the tool never ran.

An open set, e.g. user-rejected, permission-rule, interrupted, cancelled, automode-*. Absent when the tool executed, including real failures.

parentToolUseId instance-attribute

parentToolUseId: str

For a tool call made inside a subagent: the tool use id of the Agent / Task call that spawned the subagent.

toolName instance-attribute

toolName: str

The Claude Code tool name (e.g. Bash, Edit, Read).

Also carried as the standard ACP name field on the initial tool_call.

toolResponse instance-attribute

toolResponse: Any

Structured output from the tool execution.

JetBrains AIR clients only get its status / isAsync markers; the tool output itself is in the tool call content.

userFeedback instance-attribute

userFeedback: str

Text the user gave when rejecting the call. Only with nonExecutionKind.

:fa-brands-github: Show source on GitHub