execute_swap
Swap tokens on Solana using Jupiter DEX aggregator. Provide input and output token mints, amount, and slippage tolerance to execute a trade.
Instructions
Execute a token swap on Jupiter DEX aggregator. Requires PRIVATE_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": {
"input_mint": "<input_mint>",
"output_mint": "<output_mint>",
"amount": "<amount>",
"network": "<network>"
},
"name": "execute_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_mint | Yes | Input token mint address (or 'SOL') | |
| output_mint | Yes | Output token mint address (or 'SOL') | |
| amount | Yes | Amount of input token (UI amount) | |
| slippage_bps | No | Slippage tolerance in basis points (default 50 = 0.5%) | |
| network | Yes | Network — MUST be specified |