update_style
Change a style's draft: rename it, replace it with a MapLibre style document (style_json), or turn colours and settings on a palette style. Publish afterwards (or pass publish=true) for a new version; earlier versions never change. Owner or admin.
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": {
"style_id": "<style_id>"
},
"name": "update_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| colours | No | Colour overrides by slot, for palette styles. | |
| publish | No | Publish after saving. Default false. | |
| settings | No | Numbers, toggles and the font, for palette styles; see create_style. | |
| style_id | Yes | ||
| style_json | No | Replace the draft with this MapLibre style document (an editor export, say). Publish afterwards for a new version. |