add_popup
Create and customize Leaflet popups with HTML content, positioning, and width options. Generates code for attaching popups to markers, layers, or coordinates.
Instructions
Generate code for creating and customizing Leaflet popups with various options and content.
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": {
"content": "<content>"
},
"name": "add_popup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Popup content (HTML supported) | |
| position | No | Popup position (if standalone) | |
| maxWidth | No | Maximum popup width in pixels | |
| attachTo | No | What to attach popup to | marker |