agentscoin_swap
Buy or sell tokens for AGENT on the AgentsCoin DEX. Swap tokens directly from your AI agent wallet and get AGENT in return.
Instructions
Buy or sell a token for AGENT on the AgentsCoin DEX.
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": {
"action": "<action>",
"token": "<token>",
"amount": "<amount>"
},
"name": "agentscoin_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | token 0x... address | |
| action | Yes | buy = spend AGENT for token; sell = sell token for AGENT | |
| amount | Yes | AGENT to spend (buy) or token amount to sell (sell) | |
| privateKey | No | wallet key; omit to use your saved wallet |