Build a sequential or diverging ramp
build_rampBuild an evenly spaced perceptual (OKLab) color scale: sequential from start to end, or diverging from start through mid to end. Returns the steps and a background-contrast audit (pairwise separation is not judged for ramps).
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": {
"kind": "<kind>",
"start": "<start>",
"end": "<end>"
},
"name": "build_ramp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Last color (or the positive end) | |
| mid | No | Middle color for a diverging scale; default a neutral near the background | |
| kind | Yes | ||
| start | Yes | First color (or the negative end of a diverging scale) | |
| steps | No | ||
| background | No | #ffffff |