build_swap
Build a NON-CUSTODIAL Solana swap transaction (via Jupiter) with a 0.20% service fee embedded + a Guard safety check on the output mint. Returns an UNSIGNED transaction; the agent signs and sends with its own wallet. We never hold keys or funds.
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>",
"user_pubkey": "<user_pubkey>"
},
"name": "build_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | input amount in smallest units (lamports for SOL) | |
| input_mint | Yes | ||
| output_mint | Yes | ||
| user_pubkey | Yes | the agent's own wallet pubkey (signer) |