watch_directory
Monitor a directory for file changes over a fixed duration, with optional extension filtering and polling interval.
Instructions
Watch a directory for changes over a fixed duration (MCP-bound watcher)
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 | Directory to watch | |
| extensions | No | Filter by extensions e.g. ['.pdf'] | |
| poll_interval | No | Polling interval in seconds | |
| duration_seconds | No | How long to watch |