watchFiles
Track file changes (created, modified, deleted) by specifying a glob pattern. Each watcher requires a unique ID for later stopping.
Instructions
Watch glob pattern for file changes (created/modified/deleted). Use unwatchFiles to stop.
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": {
"id": "<id>",
"pattern": "<pattern>"
},
"name": "watchFiles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique ID for this watcher (used to unwatch later) | |
| pattern | Yes | Glob pattern to watch (e.g., '**/*.ts', 'src/**/*.{js,jsx}') |