Search flights
search_flightsSearch flights between two airports or cities. Returns offers with the price in grosze, schedule, fare family and a link to the offer page. Use suggest_places first when you only know a city name.
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": {
"fromCode": "<fromCode>",
"toCode": "<toCode>",
"departureDate": "<departureDate>"
},
"name": "search_flights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of offers to return, from 1 to 30. Default 10. | |
| adults | No | Number of adults. | |
| toCity | No | Arrival city name. Defaults to the IATA code. | |
| toCode | Yes | IATA code of the arrival airport or city, for example BCN. | |
| infants | No | Number of infants under 2 travelling on an adult's lap. | |
| children | No | Number of children aged 2 to 17. | |
| fromCity | No | Departure city name. Defaults to the IATA code. | |
| fromCode | Yes | IATA code of the departure airport or city, for example WAW. | |
| cabinClass | No | Cabin class. | |
| returnDate | No | Return date, YYYY-MM-DD. Omit for a one-way flight. | |
| childrenAges | No | Age of each child in years, in the same order as children. | |
| departureDate | Yes | Outbound date, YYYY-MM-DD. | |
| includeNearby | No | Also search nearby alternative airports. |