codex_start_plan_workflow
Launch a durable long-running Codex workflow in Plan Mode for asynchronous task orchestration. Obtain IDs for polling progress.
Instructions
Start a durable long-running orchestrator -> Codex workflow by launching a new Codex chat in real Plan Mode. Returns workflowId, threadId, and planTurnId for polling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| message | Yes | ||
| title | No | ||
| cwd | No | ||
| model | No | ||
| sandbox | No | read-only | |
| approval_policy | No | on-request | |
| client_request_id | No | ||
| goal | No | Optional explicit Codex thread goal objective mirrored through app-server thread/goal/set after the workflow thread exists. | |
| goal_token_budget | No | ||
| goal_completion_action | No | What MCP should do with its managed Codex thread goal after workflow completion. | clear |
| goal_completion_objective | No | Optional objective used when goal_completion_action is set_complete. | |
| timeout_seconds | No | ||
| first_message_timeout_seconds | No | Deprecated and ignored. Workflow start returns after turn/start; poll codex_get_workflow_status for plan readiness. | |
| first_message_max_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| agentGuidance | No | ||
| agentGuidanceText | No | ||
| recoveryAttemptState | No |