Get one train
get_trainUse for the full platform status of one train, including departed, due_now and platform_withdrawn trains. Give train_id (from get_departures or find_train), or a headcode plus time (HH:MM today). Several matches return candidates, a headcode alone returns train_needs_time, and a train no longer on the board returns train_not_on_board, which is not retryable. Read only. Predictions are unofficial and may be wrong. Station screens are the official source.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_train"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | HH:MM today, with headcode. | |
| station | No | Station code, for example EUS or PAD. Default EUS. Call list_stations to see which are live. | |
| headcode | No | Train headcode, an alternative to train_id when given with time. | |
| train_id | No | Train id from get_departures or find_train. |