flight_search
Search FLIGHT FARES in the catalog (Aviasales/Travelpayouts partners, fares refreshed daily). Filter by origin/destination IATA code (e.g. PEK, JFK, SIN) and optional departure date (YYYY-MM-DD). Items sorted by price; book_url is ALREADY affiliate-attributed — link the user straight to it (no convert_link needed). Works WITHOUT any API key. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "flight_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | departure date YYYY-MM-DD (optional) | |
| origin | No | origin IATA code, e.g. PEK | |
| page_size | No | ||
| destination | No | destination IATA code, e.g. SIN |