Open Commerce Pathways: run
pathways_runStep 5 of Open Commerce Pathways: spends one run authorized with pathways_authorize and plans your x402 pathway on our AI model, from our trust and market data. Returns the plan and the exact next x402 calls (from our data, not the model): your own wallet approves and pays each one, straight to the seller. A plan, not advice or a promise of income. Live data only.
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": {
"token": "<token>",
"routes": "<routes>",
"prompt": "<prompt>"
},
"name": "pathways_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | The token pathways_authorize returned. | |
| budget | No | Your budget in USDC, above 0 and at most 100 (default 4). | |
| prompt | Yes | The prompt from pathways_prompt, edited or not. | |
| routes | Yes | Route URLs exactly as pathways_routes returned them: one resells it, two to five bundle them. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| model | No | ||
| output | Yes | ||
| pathway | No | ||
| runs_left | No | ||
| next_calls | Yes |