agent_wallet_swap
Swap one asset in your managed agent wallet for any other token on Solana, into USDC by default. Use it to make spendable a token the wallet holds but cannot pay with, such as USDT or SOL someone sent it (get_agent_wallet lists them under tokens), or to buy a token you need. Find a token's mint with search_swap_tokens and check the price with agent_wallet_swap_quote first. No SOL is needed for fees; the rate includes a provider fee of up to 0.25% plus the pool fee. Waits up to 45 seconds and returns status succeeded with outputAmount and txHash, or pending if it is still settling. The money stays in your wallet, so swaps do not count against spend limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Decimal amount of from_mint to sell, in its own units (e.g. 10). | |
| to_mint | No | The asset to buy. Omit for USDC. | |
| from_mint | Yes | The asset to sell: an SPL token mint address, or native for SOL. | |
| slippage_bps | No | Maximum slippage from the quote in basis points (default 50, max 300). A worse fill fails and nothing is swapped. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||