inotify_watch
Monitor file and directory changes on Linux by adding inotify kernel watches. Set target path, filter specific events, or watch recursively to enable real-time file activity alerts for system control.
Instructions
Add a Linux inotify kernel watch on a file or directory.
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": "inotify_watch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Target path. | |
| events | No | Event mask or comma-separated list. | all |
| recursive | No | Recursive watch flag. |