palette_apply
Replaces mapped hex colors in SVG attributes, inline styles, and CSS variables without reading global palettes. Use for targeted color swaps in local documents.
Instructions
Replaces explicitly mapped local hex paints in attributes, typed inline fill/stroke/stop-color styles, and local CSS variable values without reading global Inkscape palettes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| workspaceId | Yes | ||
| replacements | Yes | ||
| expectedRevision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revision | Yes | ||
| replacements | Yes | ||
| backupCreated | Yes |