get_swap_quote
Fetches an exact-input buy or sell quote for o1 Base tokens using token address, side, raw amount, and slippage. Use it to preview swap output before signing.
Instructions
Get an exact-input o1 Base buy or sell quote.
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": {
"token_address": "<token_address>",
"side": "<side>",
"amount_in_raw": "<amount_in_raw>",
"slippage_bps": "<slippage_bps>"
},
"name": "get_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| slippage_bps | Yes | ||
| amount_in_raw | Yes | ||
| token_address | Yes |