factor_swap_uniswap
Swap tokens through Uniswap V3 via a Factor vault using exact input, with all, percentage, or wei amounts; unavailable on Base—use the OpenOcean swap tool there.
Instructions
Swap tokens through Uniswap V3 via a Factor vault (exact input). NOT available on Base — use factor_swap_openocean on Base. Supports "all", percentage amounts like "50%", or exact amounts in base units (wei). Fee tiers: 100 (0.01%), 500 (0.05%), 3000 (0.3%), 10000 (1%).
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": {
"vaultAddress": "<vaultAddress>",
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amount": "<amount>"
},
"name": "factor_swap_uniswap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | Uniswap V3 fee tier: 100 (0.01%), 500 (0.05%), 3000 (0.3%), 10000 (1%). Default: 3000 | |
| amount | Yes | Amount in base units (wei), or "all" to swap entire vault balance, or "50%" for percentage | |
| tokenIn | Yes | Address of the input token to swap from | |
| password | No | Wallet password if encrypted | |
| slippage | No | Slippage tolerance as a percentage (e.g., 0.5 for 0.5%). Default: 1 | |
| tokenOut | Yes | Address of the output token to swap to | |
| vaultAddress | Yes | The vault contract address |