Search flights
search_flightsSearch today's live fares for a one-way or round trip: up to 9 travellers, any cabin, with or without bags. Prices are totals for all travellers and include each airline's fee for the bags asked for (estimated where the airline doesn't list it). A round trip lists whole trips, outbound and return together, the cheapest first, then the fastest and the best (price and time together). It also lists a round-trip ticket when one is cheaper than two one-ways. Each answer has results_url, where the person sees all the results and books, and watch_url, which watches the trip in Wingman for a free alert when the price drops.
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": {
"origin": "<origin>",
"destination": "<destination>",
"departure_date": "<departure_date>"
},
"name": "search_flights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cabin | No | economy | |
| adults | No | Travellers aged 12 and over. | |
| origin | Yes | Where the trip starts. IATA code of an airport or a city, e.g. PRG or LON (a city's code covers all its airports). A city name also works when only one city has it. | |
| children | No | Travellers aged 2 to 11. | |
| currency | No | The currency of the prices. | EUR |
| cabin_bag | No | Each traveller takes a cabin bag (about 10 kg, in the overhead bin). | |
| max_stops | No | 0 for direct flights only, 1 for at most one stop. Leave it out for any. | |
| checked_bag | No | Each traveller checks in one bag (20 to 23 kg). | |
| destination | Yes | Where it goes. IATA code of an airport or a city, e.g. PRG or LON (a city's code covers all its airports). A city name also works when only one city has it. | |
| return_date | No | The return day, YYYY-MM-DD. Leave it out for a one-way trip. | |
| departure_date | Yes | The departure day, YYYY-MM-DD. |