add_marker
Generate Leaflet map marker code with optional popups, tooltips, custom icons, and drag functionality.
Instructions
Generate code for adding markers to a Leaflet map with optional popups, tooltips, and custom icons.
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": {
"position": "<position>"
},
"name": "add_marker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | Yes | Marker position | |
| popup | No | Popup content (HTML supported) | |
| tooltip | No | Tooltip text | |
| draggable | No | Make marker draggable | |
| customIcon | No | Include custom icon setup code |