Change a day
edit_dayChanges one day of a trip using the item ids get_trip returns: remove items (remove_ids), move an item to another date or start time (move), or swap an item for another menu id (swap). Returns the updated days. Writes; a move or swap that does not fit is refused and the day is left exactly as it was. Bookings, stays, transport and blocked time are never changed; they are named back and left alone. Use for items already on the days; use add_stop to add one new item, place_picks to set whole days, build_trip to let our AI fill days.
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>",
"day": "<day>"
},
"name": "edit_day"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | Yes | The trip day being changed, YYYY-MM-DD. | |
| move | No | Items on `day` to move to another date inside the trip. | |
| swap | No | Items on `day` to replace with another menu item at the same time. | |
| trip_id | Yes | The trip's id (trip_id), as returned by start_trip or list_trips. | |
| intent_ref | No | The reference at the end of a chat line an Adonde card posted, e.g. K7Q2MD from "Code: K7Q2MD." (older cards: "(ref K7Q2MD)"). Pass it on its own: the card's exact arguments load on our side. Add only what the line says is still missing (for a route, the travellers). | |
| remove_ids | No | Item ids to remove, from get_trip's days[].items[].id. |