flight_search
ChatGPTSearch for available flights. origin/destination can be IATA airport codes (e.g. CGK, BKK) or city/airport names (e.g. Jakarta, Bangkok) — the tool auto-resolves names to codes. If passenger counts are not provided, default to adults=1, children=0, infants=0. ROUND_TRIP requires TWO calls: (1) omit selectedFlights to get outbound flights — response includes searchId and returnDate; (2) after user picks an outbound flight, call again with ALL original params (origin, destination, departure_date, return_date, tripType) UNCHANGED, and additionally add selectedFlights=["<flightId>"] and searchId=<searchId from step-1 response>. CRITICAL for step-2: keep origin/destination in the SAME direction as step-1, include return_date from step-1 response, do NOT swap origin and destination. Call this tool only ONCE per unique route+date — never repeat identical queries.






