Add layers to a map
add_layersAdd markers, routes, proportional circles, pattern fills, annotations or labels to an existing map, and return the new URL.
Takes the svg_url of a map you already made. Everything on it is kept — this appends rather than replaces, so it is also how you build a map up over several turns.
Resolve coordinates with find_places before adding a marker. Guessed lat/lon lands in the wrong country and the render will not complain.
Use sea routes for shipping: they follow the lanes through Suez, Panama and Malacca instead of drawing a straight line over land.
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": {
"map": "<map>"
},
"name": "add_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map | Yes | A map URL from a previous call. Everything already on it is kept. | |
| labels | No | "ISO" labels every large region; an array labels only those ids. | |
| routes | No | A→B lines to add. | |
| markers | No | Points to add. | |
| patterns | No | Per-region texture fills, for hatching a category onto a choropleth. | |
| annotations | No | Per-region tooltip text. | |
| proportional | No | Circles at region centroids, area proportional to value. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| embed | Yes | ||
| png_url | Yes | The same map as PNG, 900 px wide unless the map sets width. The SVG has no such default and renders at 1200. | |
| svg_url | Yes | ||
| warnings | Yes | ||
| editor_url | Yes |