codex_get_chat
Recover context and inspect final reports by reading chat history from transcripts or legacy fallback.
Instructions
Read bounded chat content from hook history, transcripts, or legacy fallback. Use this for context recovery and final report inspection. It is not a write path and should not trigger retries.
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": {
"chat_id": "<chat_id>"
},
"name": "codex_get_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | ||
| project_id | No | ||
| range | No | ||
| include_tool_calls | No | ||
| include_tool_outputs | No | ||
| include_command_outputs | No | ||
| include_reasoning | No | ||
| include_metadata | No | ||
| include_items | No | ||
| tail_max_messages | No | ||
| tail_max_chars | No | ||
| force_refresh_summary | No | ||
| response_budget_chars | No | ||
| format | No | structured |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| agentGuidance | No | ||
| agentGuidanceText | No | ||
| recoveryAttemptState | No |