scaffold_hook
Installs a selected Claude Code hook from the toolkit's template catalog to automate workflows like auto-fix-on-start and log-bash-commands.
Instructions
Install a Claude Code hook from the toolkit's template catalog. Templates: auto-fix-on-start, block-claude-md-write, log-bash-commands, redact-secrets-on-stop, delete-old-traces, snapshot-pre-compact.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"template_id": "<template_id>"
},
"name": "scaffold_hook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_id | Yes | Template id from list_hooks. | |
| scope | No | Where to install the hook. Default: user. | |
| cwd | No | Working directory used to resolve project/local scopes. |