Skip to main content

Module input

Module input 

Source
Expand description

Hook input types — normalized representations of what agents send via stdin.

These types are deserialized from JSON and represent the agent’s hook event. Agent-specific protocol adapters normalize native JSON into these types via the HookProtocol trait.

Modules§

exit_code
Exit codes for hook responses.

Structs§

SessionStartHookInput
Hook input for SessionStart events.
StopHookInput
Hook input for Stop events (conversation turn ended without a tool call).
ToolUseHookInput
Hook input for tool-related events (PreToolUse, PostToolUse, PermissionRequest).

Enums§

HookInput
The complete hook input received from an agent via stdin.