List booked tickets (future / past / pending options)
List the account's booked tickets from SNCF Connect "Billets > Vos voyages": upcoming trips, past trips, and pending free options (pre-reservations). SNCF Connect exposes no "cancelled tickets" list — a cancelled trip simply disappears; this is a site limitation, not a filter. Requires login. Runs only via the local browser extension, not the hosted cloud browser.
Input
scope optionalWhich lists to fetch. 'future' also returns pending options; 'past' skips them.
Default: "all"Output
note requiredpast requiredfuture requiredoptions requiredCancel a pending SNCF Connect train option (pre-reservation)
Cancels a pending free option (pre-reservation) on SNCF Connect, releasing the hold it placed on a train's price and seat. Defaults to a dry run: it reports the option it would cancel and backs out without touching it. Pass confirm=true to actually cancel, which is irreversible — the blocked price is lost. When more than one option is pending, `match` picks the right one by part of its destination and/or travel date. Requires being signed in to SNCF Connect. Runs only via the local browser extension, not the hosted cloud browser.
Remove train ticket from SNCF Connect cart
Remove a specific train ticket from the SNCF Connect cart (or the only one if there's just one). Requires login. Pass `match` (substring of origin/destination, e.g. "Bordeaux") to pick which item when the cart has several; omitted `match` is fine only when exactly one item is in the cart. Confirms the site's own removal dialog. To empty the whole cart, call once per item. Runs only via the local browser extension, not the hosted cloud browser.
Book a free option (pre-reservation, no payment)
Places a free "Option" pre-reservation on SNCF Connect: holds a train's price and seat without any payment. Different from book_tickets, which adds a real fare to the cart — an Option is not a ticket, expires about 24h after it is placed (pay before then or the hold is lost), and needs the cart to be empty first, because the site's option toggle applies to the whole cart. Only single-train journeys are eligible: SNCF does not offer the free option on an itinerary with a connection, so those are passed over and the cheapest eligible fare of the requested comfort class is used. Requires being signed in to SNCF Connect. Runs only via the local browser extension, not the hosted cloud browser.
