oc_last
Fetches the latest assistant reply and voice metadata from an agent's recent session messages to recover context after a lost run ID or bridge restart.
Instructions
读取指定 agent 的 glasses 会话最近 limit 条消息(默认 10,最大 50),返回最后一条 assistant 回复和 voice 播报元数据。用于 runId 丢失、桥接进程重启、或需要确认“刚才那个任务”说了什么。只播报最后一条 assistant 的内容概要,不要把历史逐条读出来。它只反映历史,不代表任务当前是否在运行——查状态请用 oc_wait;手上没有 runId 时也不要据此断言“还在跑”或“已完成”。
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": "oc_last"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Agent 名字或 ID(先用 oc_agents 获取本机可用值)。留空使用默认 agent。 | |
| limit | No | 返回消息条数,默认 10,最大 50。 |