Swap Tokens via Fibrous
swap_tokensSwap tokens with optimal routing, handling ERC-20 approvals and wrap/unwrap automatically across supported blockchains.
Instructions
Swap tokens using Fibrous aggregator for optimal routing. Handles ERC-20 approvals and wrap/unwrap automatically. Supported chains: Base, Citrea, HyperEVM, Monad. Set simulate=true for a no-broadcast preview; a gas estimate is returned where it can be calculated safely.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Target blockchain network | base |
| amount | Yes | Amount to swap (e.g. '0.1', '100') | |
| simulate | No | Set true for a no-broadcast preview; gas estimates may be unavailable | |
| slippage | No | Slippage tolerance percentage (default: 0.5) | |
| to_token | Yes | Destination token symbol | |
| from_token | Yes | Source token symbol (e.g. 'ETH', 'USDC', 'MON') |