Decide: execute a plan
decide.executePaid ($0.001/call): Run a decision's plan (decisionId from POST /api/decide), or a free plan sketch (steps), through Agent402: first-party steps run directly, third-party steps are bought from the seller and resold to you at Agent402's price (paid with a wallet on Base; prepaid credits and cards do not pay this route).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Instead of decisionId: the tool slugs of a free plan sketch (from /api/find or /api/route), 2 to 5, in order. Pass params for step 1; a later step takes its one required input from the step before. | |
| params | No | Per-step params overriding the plan's exampleParams, keyed by step number | |
| replan | No | With decisionId: plan the saved task again on current prices and reliability, then run the new plan. Adds the plan price for that decision's depth to the quote; the answer's replanned field lists what changed. Default false. | |
| decisionId | No | From POST /api/decide (or pass steps instead) | |
| creditToken | No | executionCredit.token from that decision (optional) | |
| maxBudgetUsd | No | Spend ceiling for the run (default: the plan's estimate via Agent402) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | No | ||
| steps | No | ||
| status | No | ||
| paidUsd | No | ||
| spentUsd | No | ||
| budgetUsd | No | ||
| decisionId | No | ||
| routingFeePct | No | ||
| leftoverCredit | No | ||
| creditAppliedUsd | No |