read_session
Reads a session’s recent conversation, status, errors, and questions to show whether it crashed, awaits input, or finished, and flags usage-limit stops.
Instructions
会話の最近のやりとりを読む(依頼の文・AI の返事・状態・エラー・利用者への質問)。落ちたのか、判断待ちなのか、終わったのかを見分けるのに使う。長い文は末尾を残して切る。Codex はターンごと、Claude Code は最近の出力(claude logs)。利用制限で止まったらしいときは usageLimit に当たった行を返す(Codex はターンの error を見る)。
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": {
"threadId": "<threadId>"
},
"name": "read_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| turns | No | Codex だけ: 読むターンの数 | |
| maxChars | No | ||
| threadId | Yes |