Save a new version of the itinerary
write_new_versionSaves a revised plan as the next version of a trip and checks it. The text replaces the whole plan. Earlier versions are kept. Flights, airport transfers and hotel names in the text are not saved as bookings.
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>",
"based_on_version": "<based_on_version>",
"change_summary": "<change_summary>",
"plan_text": "<plan_text>"
},
"name": "write_new_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trip_id | Yes | ||
| plan_text | Yes | The whole plan as text: every day, where the traveller sleeps and how they move between places. Pass it as written, without summarising, rewording or leaving anything out. At most 20,000 characters. | |
| start_date | No | The date of the first day, when the traveller has stated it. Dates written in the plan text take precedence. | |
| change_summary | Yes | ||
| based_on_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | ||
| plan | Yes | ||
| trip | No | ||
| fixed | Yes | ||
| changed | Yes | ||
| removed | Yes | ||
| accepted | No | ||
| blockers | Yes | ||
| more_new | Yes | ||
| warnings | Yes | ||
| read_back | Yes | ||
| more_fixed | Yes | ||
| next_action | No | ||
| preferences | No | ||
| couldnt_read | Yes | ||
| couldnt_check | No | ||
| more_blockers | Yes | ||
| more_warnings | Yes | ||
| provenance_rules | No | Facts are sourced, unverified, stale or not_checked. Prices are live, estimate or none; hotel and flight prices are never estimated. | |
| couldnt_check_more | No |