Skip to content

PostToolUseHookInput

Base classes

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

⋔ Inheritance diagram

graph TD
  2411086237["hooks.PostToolUseHookInput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 2411086237
  2751680898 --> 2645524081

🛈 DocStrings

Bases: BaseHookInput

Input data for PostToolUse hook events.

Source code in src/clawd_code_sdk/models/hooks.py
class PostToolUseHookInput(BaseHookInput):
    """Input data for PostToolUse hook events."""

    hook_event_name: Literal["PostToolUse"]
    tool_name: str
    tool_input: dict[str, Any]
    tool_response: Any
    tool_use_id: str
    duration_ms: NotRequired[float]
    mcp_server: NotRequired[McpServerProvenance]
    agent_id: NotRequired[str]
    agent_type: NotRequired[str]

:fa-brands-github: Show source on GitHub