get_connections
Find upcoming train, tram, bus, or boat connections between two Swiss stations. Specify origin, destination, optional date/time, and get up to 16 travel options.
Instructions
Find upcoming train, tram, bus, or boat connections between two stations.
Use this tool when the user asks for travel options between two named places in Switzerland (e.g. "next train from Bern to Zürich" or "how do I get from Lugano to Lausanne tomorrow at 8?"). Station names are resolved by the upstream API, so common spellings work directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Optional departure date as ``YYYY-MM-DD``. If omitted, today is used. | |
| time | No | Optional departure time as ``HH:MM`` (24-hour, Europe/Zurich). If omitted, the API returns connections from now. | |
| limit | No | Maximum number of connections to return (1-16). Defaults to 4. | |
| to_station | Yes | Destination station name (e.g. "Zürich HB"). | |
| from_station | Yes | Origin station name (e.g. "Regensdorf"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |