Restyle a layer (direct)
restyle_layerAdjust a layer's color and/or opacity. Within-palette changes only — the renderer silently ignores fields the current viz variant doesn't support. Pass at least one of color / opacity; passing neither is an accepted no-op.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | CSS color string: hex (#RRGGBB), rgb/rgba, or named color. | |
| map_id | Yes | ||
| layerId | Yes | ||
| opacity | No | 0 (transparent) to 1 (opaque). | |
| rationale | No | Optional short label (≤300 chars) for the map edit history, e.g. "add wildfire layer". Omit it to send nothing beyond the tool arguments. |