update_object
Modify fields of a Wonderdraft map object by ID, including rotation, scale, sprite, texture, style, position, colors, and points, with type-checked values.
Instructions
Update fields of one object (id like "label:3", see list_objects). Values are checked against the type Wonderdraft stores for each key; unknown keys are rejected with the valid list.
rotation: degrees, clockwise, for symbols and labels alike (symbols are stored in radians).
scale (symbols): a number or [x, y], a multiplier on the set's base size, the same meaning as add_symbol's scale (list_objects shows the current multiplier).
variant (symbols): sprite index within the symbol's set (or within the set given as texture in the same call); texture: a sprite path. Packs are registered as needed.
style (paths/territories): a path or border texture name as in add_path / add_territory.
Vectors (position, offset) are [x, y]; colours are [r, g, b(, a)] floats 0-1 or "#rrggbb"; points (path/territory) are [[x, y], ...].
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": {
"id": "<id>",
"fields": "<fields>"
},
"name": "update_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| fields | Yes |