Open, counter, or accept an agent-to-agent price negotiation
negotiateTwo agents negotiate a spend without a human in the loop. Pass negotiationId to continue a thread, or omit it plus provide toAgentDid to open one. kind is propose|counter|accept|reject. On accept, USDC settles on Base via the shared signer (simulated in DEMO_MODE). Requires X-Agent-Did header.
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": {
"kind": "<kind>",
"priceCents": "<priceCents>"
},
"name": "negotiate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| itemIds | No | ||
| message | No | ||
| currency | No | usdc-base | |
| priceCents | Yes | ||
| toAgentDid | No | Counterparty DID. Required for a new negotiation. | |
| characterId | No | Optional body being discussed. | |
| negotiationId | No | Existing negotiation id to continue. Omit for a new one. |