Flight Search
tiket-flightFull Description
Search for flight tickets between two cities. Use this tool when the user wants to find flights, book airfare, or travel by plane between an origin and destination.
Parameters (4 required, 1 optional)
departureDatestringDeparture date for flight in YYYY-MM-DD format. If not provided, will default to today's date.
destinationstringIATA airport code (3-letter, e.g., 'DPS' for Bali, 'CGK' for Jakarta). If user provides a city name, YOU MUST convert it to the airport code before calling this tool. Common conversions: Bali/Denpasar→DPS, Jakarta→CGK, Singapore→SIN, Kuala Lumpur→KUL.
originstringIATA airport code (3-letter, e.g., 'CGK' for Jakarta, 'DPS' for Bali). If user provides a city name, YOU MUST convert it to the airport code before calling this tool. Common conversions: Jakarta→CGK, Bali/Denpasar→DPS, Surabaya→SUB, Yogyakarta→JOG, Medan→KNO.
paxstringReturn date for flight in YYYY-MM-DD format. If not provided, will default to departure date + 2 days.
returnDatestringReturn date for flight. OPTIONAL to ask user. Convert to YYYY-MM-DD.