palette_get
Reads the palettes - colors, fonts, button styles and background settings - of a Riddle. Returns every palette the Riddle can use (including the ones inherited from the account / project default preset) with all of its values, which palette is currently selected, which values this Riddle overrides, and the built-in palettes that can be used as a starting point. See riddle://reference/palette/fields for what each value does. Mind the size: a palette carries around 30 values and an account preset can contribute several palettes that have nothing to do with this Riddle, so the full response is easily thousands of tokens. Use "omit" to cut it down - omit: ["paletteValues"] lists the palettes by uuid and name only, which is how you find out WHICH palette you want (paletteUUID then returns that one in full), and "builtInPalettes"/"customizedValues"/"hints" drop those keys. To just read the design in effect, pass the selectedPaletteUuid from such a listing as paletteUUID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| omit | No | Leaves parts of the response out - the way to keep this call small. "paletteValues" lists every palette as {uuid, name} instead of with its ~30 values (then read the one you want with paletteUUID); "builtInPalettes", "customizedValues" and "hints" drop those keys entirely. Omit the parameter for the full response. Whatever you leave out is echoed back under "omittedFields", so a missing key never means the Riddle has none of it. | |
| riddleUUID | Yes | The UUID of the Riddle whose palettes you want | |
| paletteUUID | No | Return only this palette instead of all of them. Accepts a palette UUID or a built-in palette id like "default:timeless". | |
| includeBuiltInPalettes | No | Include the full values of all built-in palettes. Defaults to false, in which case only their ids and names are listed. |