Skip to content

concepts

PostToolUse

Knowledge captured in João Lopes' learning graph.

A Claude Code hook event that fires after a tool call completes successfully, receiving the tool name, parameters, and result.

↑ Contents

Definition

PostToolUse hooks run after a tool has already executed. The hook can annotate the result with additional context (stdout is appended to what the model sees on the next turn) or trigger side effects such as logging and notifications. Unlike PreToolUse, PostToolUse cannot block — the tool has already executed. It is primarily used for observability: logging file writes, tracking command execution, or injecting warnings.

↑ Contents

Source

↑ Contents

Source: OKF Markdown