add_file_watch
Set up a file system watcher that runs a specified command whenever files in a directory change, with optional glob filtering and debounce timing.
Instructions
Set up a file system watcher that triggers a command when files change
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>",
"command": "<command>"
},
"name": "add_file_watch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory path to watch | |
| command | Yes | Command to run when files change | |
| pattern | No | Glob pattern to filter (e.g. '*.swift', '*.ts') | |
| debounce_seconds | No | Debounce interval in seconds (default: 2.0) |