read_codex_session
Read Codex CLI session transcripts by ID, prefix, title, or cwd substring while stripping environment_context and encrypted reasoning payloads for clean review and handoff.
Instructions
Read a Codex CLI session transcript cleanly (stripping environment_context and encrypted reasoning payloads). Supports lookup by session_id (or prefix) or title/cwd substring.
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": {
"session": "<session>"
},
"name": "read_codex_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | handoff, recent, full, or files. | handoff |
| session | Yes | Codex session ID (or prefix) or title/cwd substring. | |
| max_chars | No | Maximum output size in characters (default 28000). | |
| last_n_turns | No | Number of latest turns to include (default 8). | |
| include_tool_details | No | Include truncated tool arguments (default false). |