poll_events
Fetch new subscribed events incrementally using a timestamp and sequence cursor, returning updated cursors and warnings when buffered events were dropped.
Instructions
轮询拉取已订阅的新事件(增量游标)。首次传 since_ts=0;之后传上次返回的 next_since_ts / next_since_seq。 响应含 dropped(缓冲累计淘汰数);无新事件但淘汰增加时附 warning 提示。
Args: since_ts: 游标时间戳(首次 0;之后用上次返回的 next_since_ts) since_seq: 游标序号(同秒事件区分;用上次返回的 next_since_seq) limit: 本次最多返回条数(默认机器人侧配置) subscription_id: 可选,只返回该订阅声明类型的事件(subscribe_events 返回的 ID)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "poll_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| since_ts | No | ||
| since_seq | No | ||
| subscription_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |