solana_execute_swap
Execute token swaps on Solana using Jupiter DEX aggregator. Provide input and output mint addresses along with the amount to complete the swap.
Instructions
Execute a token swap using Jupiter DEX aggregator (using private key from environment)
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": {
"inputMint": "<inputMint>",
"outputMint": "<outputMint>",
"amount": "<amount>"
},
"name": "solana_execute_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount of input tokens (in smallest denomination) | |
| inputMint | Yes | Input token mint address | |
| outputMint | Yes | Output token mint address | |
| slippageBps | No | Slippage tolerance in basis points (optional, default 50 = 0.5%) |