register_color
Saves a named color alias to the document palette, letting you reuse consistent RGB values by name.
Instructions
Save a named color alias to the document palette. All RGB values are 0–1. Use resolve_color or list_colors to retrieve.
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": {
"alias": "<alias>",
"r": "<r>",
"g": "<g>",
"b": "<b>"
},
"name": "register_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | ||
| b | Yes | ||
| g | Yes | ||
| r | Yes | ||
| alias | Yes | Name for this color, e.g. 'brand-blue', 'amber', 'near-black' |