讀取已收到的事件
mc_events_pollRetrieve Minecraft Education Edition events using a cursor for continuous pagination, monitor for dropped events to adjust polling frequency, and optionally filter by event name.
Instructions
取出游標之後的事件。第一次用 afterCursor=0,之後帶回上次回傳的 nextCursor 就能連續讀。dropped 大於 0 代表緩衝環繞、有事件永遠讀不到了,該提高輪詢頻率。無副作用。
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": "mc_events_poll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| eventName | No | 只取這一種事件 | |
| afterCursor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | ||
| dropped | Yes | ||
| nextCursor | Yes |