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.
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 |