streetview_from_gridref
Fetches Google Street View images for an Ordnance Survey grid reference by locating the nearest outdoor panorama within a set radius and returning views aimed at the referenced point.
Instructions
Fetch Google Street View image(s) for an OS grid reference.
Finds the nearest outdoor panorama within radius_m of the centre of the grid square, then returns the image(s). By default one image is taken looking from the panorama towards the grid reference point.
Args: grid_ref: OS grid reference, e.g. "SU 123 456" or "NN166712". views: number of images spread evenly around 360 deg (1-8). 4 gives N/E/S/W-style coverage. heading: compass heading of the first view in degrees. Default: towards the point (or 0 if the panorama is on top of it). pitch: up/down camera angle, -90 to 90. fov: horizontal field of view in degrees, 10-120. radius_m: search radius for the nearest panorama in metres. size: image size "WxH", max 640x640. save: also save JPEGs to REFCONV_OUTPUT_DIR and return their paths.
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": {
"grid_ref": "<grid_ref>"
},
"name": "streetview_from_gridref"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fov | No | ||
| save | No | ||
| size | No | 640x640 | |
| pitch | No | ||
| views | No | ||
| heading | No | ||
| grid_ref | Yes | ||
| radius_m | No |