poll_pending_events
Retrieve and process pending events from a polling transport subscription, with optional filtering by event type and limit. Use this to check for and handle queued events in real time.
Instructions
Poll pending events for a polling-transport subscription.
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": {
"subscription_id": "<subscription_id>"
},
"name": "poll_pending_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| event_type | No | ||
| subscription_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| drained | Yes | ||
| next_seq | Yes | ||
| committed | Yes | ||
| last_read_seq | Yes | ||
| subscription_id | Yes |