route_vehicles
Get live vehicle positions for one route from the agency GTFS Realtime vehicle positions feed. Pass agency to resolve the route inside one agency. For GO Transit the route can be a line short name or long name such as LW or Lakeshore West, a bus route number such as 41, or UP for UP Express trains. Without agency the TTC is tried first, then HSR, then GO Transit, so a route name that exists in more than one agency returns the first match in that order.
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": {
"route": "<route>"
},
"name": "route_vehicles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum vehicles to return | |
| route | Yes | A route_id, short name, or long name, for example 501, King, or 1 | |
| agency | No | Optional agency the route belongs to: ttc, hsr or go |