Search train journeys
Search trains between two cities or stations on a given date via SNCF Connect. Returns each journey (times, duration, operator, best price) with all of its fare offers (class, fare name, price, flexibility, full conditions) and whether the fare can be cancelled free of charge. No journeys means no tickets are on sale for that date. Runs only via the local browser extension, not the hosted cloud browser.
Input
date requiredOutward date YYYY-MM-DD
origin requiredDeparture city or station, e.g. 'Turin' or 'Paris Gare de Lyon'
destination requiredArrival city or station, e.g. 'Paris'
Output
date requiredorigin requiredjourneys requireddestination 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.
