enable_git_hooks
Install git hooks to automatically re-index your codebase on branch switch, pull, or merge, keeping semantic search results in sync.
Instructions
Install git hooks for automatic re-indexing on git operations (branch switch, pull, merge). Makes index stay in sync automatically.
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": {
"path": "<path>"
},
"name": "enable_git_hooks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to codebase root directory | |
| hooks | No | Git hooks to install (default: all) |