create_map
Generates complete Leaflet map initialization code with HTML, CSS, and JavaScript. Configure center coordinates, zoom level, and tile provider.
Instructions
Generate complete Leaflet map initialization code with HTML, CSS, and JavaScript. Includes tile layer setup and basic configuration.
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": {
"center": "<center>"
},
"name": "create_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| center | Yes | Map center coordinates | |
| zoom | No | Initial zoom level (0-19) | |
| tileProvider | No | Tile provider to use | openstreetmap |
| containerId | No | HTML element ID for map container | map |
| includeHTML | No | Include HTML boilerplate |