get_booking_link
Create a direct SBB booking link for a specific train journey to enable quick ticket purchase.
Instructions
Get a direct link to buy tickets on sbb.ch for a specific journey.
Use this when someone wants to:
Buy a ticket ("book me a train from Zürich to Bern")
Get a link to the SBB website for a specific route and time
Share a timetable link with someone
Returns a ready-to-click URL that opens SBB's timetable with the search pre-filled.
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": {
"from_station": "<from_station>",
"to_station": "<to_station>"
},
"name": "get_booking_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_station | Yes | ||
| to_station | Yes | ||
| date | No | ||
| time | No | ||
| is_arrival_time | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |