Add a flight already booked
add_booked_flightSaves flights the traveller booked themselves, such as ones read from a booking confirmation, so no flight search is needed and the legs show as booked. Without trip_id it starts a new trip from them, like start_trip_from_flight: from the day the flight out lands to the day the flight home leaves (or nights after landing when there is no flight home yet), with the new-trip draft's wishes and focus. With trip_id it fits that trip to them: the flight out sets the first day, the flight home the last, nights move as with set_trip_fare. With trip_id and leg_key it saves one flight for that leg of the route, booked; for a leg between stops the flight has to leave on the leg's day. Times are local at each airport and go in the trip's calendar. Shows the trip in the planner.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_booked_flight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | The flight out, or with leg_key the flight for that leg | |
| back | No | The flight home | |
| name | No | ||
| price | No | What the traveller paid, all travellers, both ways | |
| adults | No | ||
| nights | No | For a new trip with no flight home yet: nights after landing | |
| country | No | For a new trip: the country it is in, when not the arrival airport's | |
| leg_key | No | With trip_id: the leg this one flight is for (give it as out) | |
| replace | No | True when a flight already booked on this trip was changed and this one replaces it; without it a different flight on the same side is refused | |
| trip_id | No | ||
| currency | No | ||
| booking_ref | No | Booking reference (PNR), kept as the legs' note |