codex_resume
Resume an existing Codex session by exact session ID, prior MCP job ID, or latest indexed session; continue with a follow-up prompt while locking session identity.
Instructions
Resume an existing Codex session by exact session_id, previous MCP job_id, or use_last=true (mutually exclusive). Locks session identity strictly.
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": {
"prompt": "<prompt>"
},
"name": "codex_resume"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory (defaults to the session's recorded cwd). | |
| model | No | ||
| images | No | ||
| job_id | No | Previous MCP job_id whose session to resume. | |
| prompt | Yes | Follow-up prompt sent via stdin. | |
| profile | No | Optional Codex config profile (-p). | |
| sandbox | No | ||
| use_last | No | Deterministically pick the latest indexed session (filtered by cwd if given). | |
| session_id | No | Exact Codex session UUID to resume. | |
| wait_seconds | No | ||
| output_schema | No | ||
| allow_unindexed | No | Allow passing a valid UUID not found in local index. | |
| max_duration_sec | No | ||
| reasoning_effort | No | Optional Codex reasoning effort override (-c model_reasoning_effort=..., e.g. low, medium, high, xhigh). | |
| skip_git_repo_check | No |