poll_events
Retrieve pending file system events from active watches, draining the queue with each call. Call repeatedly to process all queued changes without missing events.
Instructions
Drain and return queued file system events.
Events are removed from the queue once returned (consume-once semantics). Call repeatedly to receive all pending events.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| watch_id | No | Optional watch_id to filter results. If omitted, events from all active watches are returned. | |
| max_events | No | Maximum number of events to return in a single call (1–500, default 50). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||