Lock-and-Fill Palette from Archive
palette_generateGenerate a colour palette by locking known hex values and filling empty slots with nearest historical matches from a chosen archive, returning cited colour names and sources.
Instructions
Send a palette of up to 8 slots, locking some with hex values and leaving others empty. Empty slots are filled with the nearest CIEDE2000 archive match, interpolated from the locked anchors. Optional archive filter restricts fills to one archive. Returns full citation — name, archive, primary source, colour notes — for every filled slot. Example: lock a client's existing wall colour and fill a 5-colour scheme from Oxfordshire.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slots | Yes | List of palette slots. Each has index (0-7), optional hex, and locked flag. | |
| archive | No | Optional: restrict fills to one archive e.g. 'Oxfordshire', 'Shakespeare', 'Japan' | |
| size | No | Total palette size 2-8 (default 5) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| result | No | ||
| error | No |