Read Codex output or wait for progress
discussion_readRead the latest or specified discussion turn, poll until completion or new output, and follow cursors to fetch message chunks; re-read without a cursor for live updates.
Instructions
Read the latest or specified turn. Poll with waitMs up to 20000 until completed, failed, interrupted or connectionLost; new output can return before completion. Follow nextCursor for more message chunks. During generation, read again without a cursor for updated text. Persisted historical per-turn model/effort may be unavailable; threadDefaults are reported separately.
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": {
"discussionId": "<discussionId>"
},
"name": "discussion_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | ||
| turnId | No | ||
| waitMs | No | ||
| discussionId | Yes |