Change Flight Selection
change_flightFull Description
Select or change the flight for an existing hotel selection and generate the booking link. For FLIGHT+HOTEL packages, this is the ONLY tool to use for flight confirmation — both for the pre-selected flight AND for alternative flights. Must be used AFTER get_alternative_flights. Pass the transport_id of the desired flight (pre-selected or alternative) as new_transport_id. Automatically generates and returns the booking link — do NOT call generate_booking_link afterwards. CRITICAL: Before calling, verify the pricing_id matches the CURRENT hotel shown in widgetState.modelContent or in the most recent USER WIDGET ACTION / USER SCREEN UPDATE message. Widget actions DO produce conversation-history entries as JSON acks — the pricing_id in the most recent such ack with status='ok' is AUTHORITATIVE. Older pricing_ids from earlier responses are STALE.
WIDGET-ALREADY-CALLED RULE — when the user clicks a flight in the widget (DP flow), the widget calls this tool ITSELF and emits a USER WIDGET ACTION with action='open_booking_summary' and flow='dp', or a USER SCREEN UPDATE with action='enter_booking_summary_dp'. When such a message is the most recent turn with status='ok', this tool has ALREADY been executed, the booking link is ALREADY generated and visible to the user. DO NOT call change_flight yourself — that would duplicate the action. Absorb the ids (pricing_id, rate_id, transport_id, flight_price) as the current context and wait for the user.
Parameters (2 required)
new_transport_idstringtransport_id of the new flight from get_alternative_flights
pricing_idstringpricing_id from select_hotel_options response