render_map
Create interactive HTML maps from satellite imagery, raster tiles, and GeoJSON data, with optional swipe comparison for before/after analysis.
Instructions
Write a self-contained interactive HTML map and return its file path.
layers is a list of: {"type": "item", "name": ..., "catalog": ..., "collection_id": ..., "item_id": ..., "assets": [...], "rescale": "0,3000", "colormap_name": ..., "expression": "(nir-red)/(nir+red)"} # expression for index layers {"type": "raster", "name": ..., "tiles": "https://..{z}/{x}/{y}.."} {"type": "geojson", "name": ..., "data": , "color": "#hex"} Item layers resolve to the right tiling backend automatically. The HTML is shareable: MapLibre + live tile URLs, no server of ours required.
compare: True renders two raster layers as a draggable swipe (before/after), False stacks them as toggleable overlays. Default None auto-decides: swipe only when both rasters come from the SAME collection (a comparison), overlay when they differ (e.g. burn severity over imagery — pass opacity ~0.75).
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": {
"title": "<title>",
"bbox": "<bbox>",
"layers": "<layers>"
},
"name": "render_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | Yes | ||
| title | Yes | ||
| layers | Yes | ||
| compare | No | ||
| out_path | No | ||
| subtitle | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||