Search the docs

Search guides, API endpoints and MCP tools.

Run a plugin hook: session-start, prompt, tool, stop. Prints the client's hook output.

clanker hook

Run a plugin hook: session-start, prompt, tool, stop. Prints the client's hook output.

clanker hook [options] <event>

Arguments

<event>stringRequired

The hook event: session-start, prompt, tool or stop

Options

--client <client>stringRequired

The client the plugin runs in

One ofclaudecodexcursor
--computer <name>string

This computer's name (default: the system's)

--workspace <slug>string

Workspace slug or id (default: the linked workspace)

Examples
clanker hook prompt --client claude