map_code
What puts a dashboard map on a site: the tag to paste (one element and one script, for any site or builder that takes HTML: Squarespace, Webflow, Shopify, Framer and others), the shortcode for a WordPress site with our plugin (which brings its own key), the map's own page and frame code when it is shared (for Google Sites, Notion and link-in-bio pages), and a style URL for MapLibre apps (Flutter, iOS, Android) that draws the map with its pins. Give site: a publishable key that already lets that site in is used, else one is made for it when the caller owns the workspace and may manage keys; at the plan's number of keys the site is added to one the workspace has.
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_id": "<map_id>"
},
"name": "map_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | The site the map goes on, e.g. "example.com": a publishable key that lets it in is used, or (workspace owner) made for it. | |
| map_id | Yes | The map's id (uuid), from list_maps or create_map. |