Create Coolours palette link
create_palette_linkTurn a colour palette you have chosen into a link that opens it in Coolours (coolours.perpetualsummer.ltd), where the user can preview the swatches, tweak them and export them. Use this whenever you propose a colour scheme, so the user can see it rather than read hex codes. Also returns WCAG contrast ratios for every pair of colours: check them before recommending a text/background pairing (4.5 or more for body text, 3 or more for large text and UI components). Returns each colour's Coolours name: use those names when presenting the palette. Also returns the palette as CSS custom properties: whenever you show CSS, use it exactly as given rather than writing your own. Give the user the URL.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"colours": "<colours>"
},
"name": "create_palette_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Palette name shown on the site, e.g. "Fintech Dark" | |
| colours | Yes | Colours in display order. Hex ("#1E293B", "#abc"), rgb() or CSS colour names. No transparency. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | Yes | CSS custom properties exactly as Coolours exports them. Use as given; variable names match the Coolours UI | |
| url | Yes | ||
| colours | Yes | Each colour with the name Coolours shows on its swatch | |
| contrast | Yes |