Change a trip
update_tripChanges a saved trip. Fields left out stay as they are; "stops", when given, replaces the whole route. Flights chosen for legs that no longer exist stay saved but are not shown; a hotel chosen for a stop whose dates moved shows as needing a new choice. A change that would move a flight the traveller marked booked is refused (mark_leg with booked false first, once the booking is changed); booked hotels and tours that leave the route are named in the reply.
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": {
"trip_id": "<trip_id>"
},
"name": "update_trip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diet | No | How the traveller eats ("vegetarian", "halal", "gluten-free"); an empty list clears it. Places to eat are looked for with it | |
| name | No | ||
| start | No | ||
| stops | No | ||
| style | No | What the trip is: "base" to stay in one place, "around" to travel around; "none" clears it. Set it only when the traveller said so | |
| adults | No | ||
| budget | No | What the whole trip may cost, all travellers, in budget_currency; 0 for none | |
| trip_id | Yes | ||
| children | No | The ages of the children travelling, one each; an empty list for none | |
| interests | No | What the traveller wants to do on this trip, in their words ("temples", "hiking", "street food"); an empty list clears them. Local picks are looked for from these | |
| keep_route | No | With stops: keep the route being replaced as a route option ("Your previous route"), so the traveller can go back to it with choose_route | |
| route_done | No | The route is settled as it is, for example one city for a weekend: the planner stops asking for route options | |
| self_drive | No | True when the traveller drives themselves (own or rental car): the trip's road legs are drives they make, with a drive time, and nothing to book | |
| home_airport | No | ||
| budget_currency | No | The currency the budget is in, such as USD or GBP; the budget's current one (euros for a new budget) when left out |