file_watch
Watch a file or directory for real-time changes using kernel-level file system events. Captures creates, writes, deletes, and renames instantly.
Instructions
Watch a file or directory for changes using kernel-level FS events (FSEvents on macOS, inotify on Linux). Captures creates, writes, deletes, renames in real time. A background MCP process can do this — Claude in a chat window never could.
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>"
},
"name": "file_watch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File or directory to watch | |
| seconds | No | How long to watch in seconds (default 10, max 60) |