codex_adopt_workflow_plan
Adopt a newer valid plan candidate into a workflow when status reports an adoptable plan. Use after polling workflow status.
Instructions
Adopt a valid newer Plan Mode candidate already present in the workflow thread. Use this only when status or diagnostics reports an adoptable plan. Next poll codex_get_workflow_status.
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": {
"workflow_id": "<workflow_id>",
"candidate_turn_id": "<candidate_turn_id>",
"candidate_plan_hash": "<candidate_plan_hash>"
},
"name": "codex_adopt_workflow_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | ||
| candidate_turn_id | Yes | ||
| candidate_plan_hash | Yes | ||
| client_request_id | No | ||
| adoption_note | No | ||
| message_max_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| agentGuidance | No | ||
| agentGuidanceText | No | ||
| recoveryAttemptState | No |