session_read
Reads recent messages and busy status from a registered Agent Bridge session, returning full message text with pagination and flagging when the agent needs user input.
Instructions
只读:读登记册会话最近 N 条消息 + busy 状态,返回消息全文(不摘要/不截断,超长按条数分页)。回合结束后若 pi 在提问,标出 needsUser 与原文。
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": {
"sessionId": "<sessionId>"
},
"name": "session_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 条数,默认 20 | |
| before | No | 分页游标(上一页返回的 nextBefore) | |
| sessionId | Yes | Bridge 会话 ID(必须是本连接器登记册内的会话;session_adopt 是唯一接管入口) |