get_train_status
Live train service status for Tokyo-area lines — delays, suspensions, resumptions. Ask 'is the Yamanote Line running?' by line or station name, English or Japanese. Status enum: normal / delayed / suspended / resumed. Cause text relayed from ODPT (English summary for known patterns, else original text + null). Data via ODPT (CC BY 4.0).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Line or station name (English or Japanese), e.g. "Yamanote" or "新宿". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of lines. | |
| lines | No | Per-line status: normal / delayed / suspended / resumed, with cause. | |
| query | No | Echo of the query. | |
| stale | No | True if stale. | |
| fetched_at | No | When the snapshot was fetched. | |
| attribution | No | Data source(s), license and provenance — an object, or an array of sources. |