add_label
Adds a styled text label to a Wonderdraft map using theme presets, with control over color, size, rotation, and curve for clear place names and annotations.
Instructions
Add a text label using one of the theme's label presets (Town, City, Region, ...; preset_used says which one matched). color is "#rrggbb" or [r, g, b(, a)] floats 0-1 (0-255 values are rejected with a hint). size is the font size in px (default from the preset); rotation is in degrees, clockwise (90 = vertical); curve is Wonderdraft's label curve value stored as-is (0 = straight; non-zero bends the text along an arc, the sign picks the direction; start small and check in Wonderdraft, the preview draws it straight).
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": {
"text": "<text>",
"pos": "<pos>"
},
"name": "add_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pos | Yes | ||
| size | No | ||
| text | Yes | ||
| color | No | ||
| curve | No | ||
| preset | No | Town | |
| rotation | No |