save_palette
Persist a named color palette for later retrieval with get_palette or list_palettes. colors is a list of hex values; optional notes are stored as the palette's description. Author is recorded as RNVizion. This WRITES to the palette store and is the only tool here that does. Reusing an existing name overwrites that palette: save and update are the same call (an upsert), there is no separate update operation. Returns a durable flag: true if the palette reached durable storage (the HF Dataset) and will survive a restart, false if it saved to the local working copy only (which is lost on rebuild, e.g. when the Space HF_TOKEN is missing or lacks write scope). Use when the user wants to keep a set of colors under a name for reuse across sessions, such as a brand or launch palette; to read a palette back use get_palette, and to see what already exists use list_palettes. The saved name can then be passed to mix_colors, convert_color, and generate_harmony as a palette reference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Unique key the palette is stored under. Reusing an existing name overwrites that palette (upsert). Can be referenced later by other tools as 'name:index', e.g. 'Spring line:2'. | |
| notes | No | Optional human-readable description stored as the palette's notes. | |
| colors | Yes | Ordered list of hex colors, each '#RRGGBB' (e.g. '#d2bc93'). Order is preserved; at least one required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name the palette was stored under. | |
| notes | Yes | Description stored on the palette; empty if none given. | |
| colors | Yes | The hex colors saved, in order. | |
| durable | Yes | True if the palette was written through to the durable HF Dataset and will survive a Space rebuild; False if it saved to the local working copy only (e.g. the Space HF_TOKEN is missing or lacks write scope), meaning it will be lost on the next restart. | |
| color_count | Yes | Number of colors in the saved palette. | |
| overwritten | Yes | True if a palette with this name already existed and was replaced; False if newly created. |