codex_read_session
Read messages, turn history, and tool actions from a specific Codex session to inspect conversation context, with controls for how many recent turns and whether tool calls are included.
Instructions
Read messages, turn history, and tool actions from a specific Codex session.
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_id": "<session_id>"
},
"name": "codex_read_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_turns | No | Number of recent conversation turns to retrieve (default: 10). | |
| session_id | Yes | The Codex session ID (UUID) to inspect. | |
| include_tool_calls | No | Whether to include tool calls in the output (default: true). |