get_patterns
Retrieve pattern points to draw a bus route or vehicle's path on a map. Provide pattern IDs or a route designator.
Instructions
Fetch pattern points for a comma-delimited list of pattern ids (pid, max 10), or all active patterns for a single route (rt). Provide exactly one of pid or rt, not both. Useful for drawing a route or vehicle's path on a map.
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_patterns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rt | No | Route designator to fetch all active patterns for. Mutually exclusive with pid. | |
| pid | No | Comma-delimited pattern ids (max 10), e.g. the 'pid' field from a get_vehicle or get_predictions_for_stop result. Mutually exclusive with rt. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |