Agent swarm plan
agent_swarm_planDecompose a complex goal into a deterministic multi-agent DAG with exact BigInt micro-USDC split (zero rounding drift), verified x402 tool assignments, SHA-256 swarmManifestHash, and unsigned ERC-8183 G2 Jobs createJobWithTerms escrow calldata on Base or Arc. $0.004 per call over x402 (USDC on Arc, Base or Solana, or XNT on X1). Call once without payment for the terms, sign them with your own wallet, call again with payment.
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": {
"goal": "<goal>"
},
"name": "agent_swarm_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | goal description for the multi-agent swarm (6 to 400 chars) | |
| chain | No | escrow chain: base (default) or arc | |
| payment | No | a signed x402 payment (the base64 payload you would put in PAYMENT-SIGNATURE). Pass it and the purchase completes inside this tool call. | |
| workers | No | number of worker roles in DAG (2 to 6, default 3) | |
| provider | No | optional 0x lead worker address (defaults to zero address) | |
| budgetUsd | No | total USDC budget (0.01 to 10000, up to 6 decimals, default 0.05) | |
| evaluator | No | optional 0x arbitrator address (or from) for ready-to-broadcast createJobWithTerms calldata | |
| reviewHours | No | review window in hours (1 to 168, default 24) | |
| killFeePercent | No | kill fee percent on rejected work (0 to 25, default 0) |