create_style
Create a style and by default publish it, returning a versioned URL that never changes and a latest URL that follows later publishes. Either a built-in look with colour overrides and settings, or a complete MapLibre style document in style_json (an editor export, a file the human pointed you at). 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": {
"name": "<name>"
},
"name": "create_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | The built-in look to start from: meadow, midnight, neon, vintage, blueprint or sakura. Default meadow. | |
| name | Yes | ||
| colours | No | Colour overrides by slot: background, earth, water, water_line, landuse (built-up), natural, park, farmland, road (medium), road_highway, road_major, road_minor, road_path, road_outline, road_tunnel, rail, building, boundary, label (cities), label_secondary, label_road, label_water, poi, halo. CSS colours, e.g. "#1f6feb". | |
| publish | No | Publish straight away and return the URL a site can use. Default true. | |
| settings | No | Numbers, toggles and the font: road_width 0.25-3, road_outline_width 0-3, river_width 0.25-3, label_size 0.5-2, halo_width 0-4, building_opacity 0-1, building_height 0-3, minor_roads_from 10-16, buildings_from 11-16; buildings_3d, road_labels, water_labels, pois, boundaries, show_rail, globe (true/false; globe draws the map on a 3D globe), sky (true/false; paints sky and atmosphere); font: "Noto Sans Regular", "Noto Sans Medium" or "Noto Sans Italic"; language: the label language, e.g. "en", "de", "ja", "zh-Hans" (41 in all), omit for local names. | |
| style_json | No | A complete MapLibre style document instead of a look and colours, e.g. one the human made in a style editor and gave you, or a file you read. Its sources, glyphs and sprite are pointed at our tile host when served. Up to 512 KB. |