watch_directory
Monitors a directory for file changes and automatically updates the local code index within seconds, batching rapid edits so AI search stays current.
Instructions
Start watching a directory for changes and auto-sync the index.
When files are modified, created, or deleted, the index will automatically
update within a few seconds (debounced to batch rapid changes).
Args:
directory: Path to the directory to watch
Returns:
Status message
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": {
"directory": "<directory>"
},
"name": "watch_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |