Wait for Remote Task
remote_inspectCheck an async Codex task, wait up to 120 seconds for completion, retrieve stored output, or request cancellation by task ID.
Instructions
After submitting async work, call with task_id only. Waits up to 120s and returns immediately on completion. Finished Codex tasks include answer/review/usage; do not fetch them again. If still running, call again with the same ID without progress polling or repeated commentary. wait_ms=0 is an immediate diagnostic snapshot. step_index retrieves specific stored output. Exposed read/call images return as MCP image content; text character limits apply only to text, with image limits of 8 MiB/4 images per task. action=cancel requests task cancellation immediately; ending a wait never cancels the task. Never resubmit unknown writes.
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": {
"task_id": "<task_id>"
},
"name": "remote_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | inspect | |
| task_id | Yes | ||
| wait_ms | No | ||
| max_chars | No | ||
| step_index | No |