get_directions
Get the directions serviced by a bus route. Enter the route ID to find direction names for use in stop retrieval.
Instructions
Fetch the set of directions serviced by the specified route. Use the 'id' field (not the human-readable 'name') from a result as the 'direction' parameter for get_stops_for_route.
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": {
"rt": "<rt>"
},
"name": "get_directions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rt | Yes | Route designator, e.g. the 'rt' field from a get_routes() result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |