Skip to content

PreToolUseHookInput

Base classes

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

⋔ Inheritance diagram

graph TD
  1171778269["hooks.PreToolUseHookInput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 1171778269
  2751680898 --> 2645524081

🛈 DocStrings

Bases: BaseHookInput

Input data for PreToolUse hook events.

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

    hook_event_name: Literal["PreToolUse"]
    tool_name: str
    tool_input: dict[str, Any]
    tool_use_id: str
    mcp_server: NotRequired[McpServerProvenance]
    agent_id: NotRequired[str]
    agent_type: NotRequired[str]

:fa-brands-github: Show source on GitHub