read_stream
Read frames from local observation windows: recent frames, before_seq backward paging, window_ms lookback, or since_seq continuation. Continue via last_delivered_seq; gap marks lost cursor ranges.
Instructions
读取本地观察窗。可读最近帧、按 before_seq 向前翻页、按 window_ms 回看或按 since_seq 续读。每次续读用 last_delivered_seq,gap 表示游标区间有丢失。
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": {
"window_id": "<window_id>"
},
"name": "read_stream"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 最多返回帧数,缺省 20 | |
| wait_ms | No | 续读等待新增帧的毫秒数,仅用于 since_seq | |
| since_seq | No | 读取此序号之后的帧 | |
| window_id | Yes | ||
| window_ms | No | 回看最近多少毫秒 | |
| before_seq | No | 读取此序号之前最近的帧 |