Skip to content

PostToolUseHookSpecificOutput

Base classes

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

⋔ Inheritance diagram

graph TD
  1314445391["hooks.PostToolUseHookSpecificOutput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 1314445391
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Hook-specific output for PostToolUse events.

Source code in src/clawd_code_sdk/models/hooks.py
class PostToolUseHookSpecificOutput(TypedDict):
    """Hook-specific output for PostToolUse events."""

    hookEventName: Literal["PostToolUse"]
    additionalContext: NotRequired[str]
    classifierContext: NotRequired[str]
    updatedToolOutput: NotRequired[Any]
    """Replace the tool output the model sees (any tool)."""
    updatedMCPToolOutput: NotRequired[Any]

updatedToolOutput instance-attribute

updatedToolOutput: NotRequired[Any]

Replace the tool output the model sees (any tool).

:fa-brands-github: Show source on GitHub