codex_run_task
Start an autonomous Codex coding task with a chosen model and workspace directory, then persist the session for viewing, management, or continuation in the Codex Desktop App or CLI.
Instructions
Start a new autonomous Codex coding task with a chosen model and directory. Persists the session in Codex so it can also be viewed, managed, or continued in the Codex Desktop App or CLI.
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_run_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Codex model to use (e.g. gemini-3.8-flash-high, deepseek-flash, gpt-6.1-sol, gpt-6-astra, etc.). | |
| prompt | Yes | Detailed instructions for the Codex coding agent. | |
| sandbox | No | Sandbox mode (default: danger-full-access). | |
| working_dir | No | Workspace directory root for execution. | |
| timeout_seconds | No | Timeout in seconds (default: 300). | |
| dangerously_bypass_approvals | No | Skip confirmation prompts (default: true). |