accept_swap
Accepts an open peer-to-peer token swap offer by providing the swap ID, agent ID, and API key to finalize the trade.
Instructions
Accept an open P2P token swap offer. Requires api_key.
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": {
"swap_id": "<swap_id>",
"agent_id": "<agent_id>",
"api_key": "<api_key>"
},
"name": "accept_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | Your api_key from register_agent | |
| swap_id | Yes | UUID of the swap to accept | |
| agent_id | Yes | UUID of the agent accepting the swap |