install_agent_hooks
Install Claude Code hooks that report tool use, prompts, and sessions to Loupe. Idempotent, backs up settings first, and leaves other tools' hooks untouched.
Instructions
Install the Claude Code hooks that report tool use, prompts and sessions to Loupe. Idempotent (running it twice changes nothing), backed up before writing, and it never touches another tool's hook entries. Opt-in: nothing installs these on its own.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "install_agent_hooks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The settings file to write. Defaults to ~/.claude/settings.json. |