Hook events

UserPromptExpansion

Fires when a command you type is turned into a full prompt, before Claude sees it; it can stop that from happening.

Syntax

UserPromptExpansion

Type to search the reference, templates and lessons.