codebase_watch
Watch a project directory for file changes and automatically refresh the index, running an incremental catch-up update first. Start, stop, or check watcher status.
Instructions
Start/stop watching a project directory for file changes and automatically update the index. When starting, first runs an incremental update to catch up, then watches for changes. SOCRATICODE_WATCHER=manual allows explicit starts only; off and git reject file-watcher starts. In git mode, status reports Git refresh state and stop does not disable Git checks.
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": {
"action": "<action>"
},
"name": "codebase_watch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | start/stop watching, or get status of watchers. | |
| projectPath | No | Absolute path to the project directory. |