jupiter-swap
Swap tokens on Solana by specifying input and output mint addresses, amount, and optional slippage tolerance. Executes the trade through Jupiter's aggregator.
Instructions
Swap tokens on Solana using Jupiter
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>"
},
"name": "jupiter-swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The amount of input tokens to swap | |
| input_mint | Yes | The mint address of the input token | |
| output_mint | Yes | The mint address of the output token | |
| slippage_bps | No | Slippage tolerance in basis points (e.g., 1000 = 10%) |