codex_job_result
Retrieve the result of a completed Codex async job (diff, consult, or review) without deleting it. Use after polling for result_available.
Instructions
Fetch a finished background Codex job's result WITHOUT deleting the record.
Works for any async job — codex_delegate_async (a diff), codex_consult_async (a
consult answer), or codex_review_changes_async (a review with verdict). Use when
codex_job_status reports result_available=true; the envelope matches the job's
kind, so branch on tool. meta.job_id is set. A still-running/cancelled/timed-
out/failed job returns an error envelope. To fetch and delete, use
codex_job_consume_result.
detail="summary" (default) omits the raw model text; pass detail="full" for
the complete raw output and metadata (#56).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | Response verbosity: 'summary' (default) omits the raw model text; 'full' includes it. | summary |
| job_id | Yes | The job_id returned by an *_async call (codex_*_async); recover lost ids with codex_job_list. | |
| workspace_root | No | Absolute path to the target repository root. Pass it (or rely on an MCP root) so the call targets the intended repo; otherwise it falls back to the server's own cwd and meta.workspace_warning is set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes |