Update Mapbox Style Tool
update_style_toolUpdate an existing Mapbox style by providing a new name or complete style specification, including version, sources, layers, and optional properties.
Instructions
Update an existing Mapbox style
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name for the style | |
| style | No | Complete Mapbox Style Specification object to update. Must include: version (8), sources, layers. Optional: sprite, glyphs, center, zoom, bearing, pitch, metadata, etc. See https://docs.mapbox.com/mapbox-gl-js/style-spec/ | |
| styleId | Yes | Style ID to update |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique style identifier | |
| fog | No | Fog properties | |
| name | Yes | Human-readable name for the style | |
| zoom | No | Default zoom level | |
| draft | No | Whether this is a draft version | |
| light | No | Global light source (deprecated, use lights) | |
| owner | Yes | Username of the style owner | |
| pitch | No | Default pitch in degrees | |
| center | No | Default map center [longitude, latitude] | |
| glyphs | No | URL template for glyph sets | |
| layers | Yes | Layers in draw order | |
| lights | No | Array of 3D light sources | |
| sprite | No | Base URL for sprite image and metadata | |
| bearing | No | Default bearing in degrees | |
| created | Yes | ISO 8601 timestamp when style was created | |
| imports | No | Imported styles | |
| sources | Yes | Data source specifications | |
| terrain | No | Global terrain elevation | |
| version | Yes | Style specification version number. Must be 8 | |
| metadata | No | Arbitrary properties for tracking | |
| modified | Yes | ISO 8601 timestamp when style was last modified | |
| protected | No | Whether style is protected from modifications | |
| projection | No | Map projection | |
| transition | No | Default transition timing | |
| visibility | Yes | Style visibility setting |