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 | Yes | Short audit-log label (≤300 chars) stating the user-facing goal this call serves, e.g. "add wildfire layer for the user's California query". Required on every call. Stored in the operations log so map edits stay traceable — we never see your chat history. |