pencil2d_manage_palette
Add or update color swatches in a Pencil2D project palette to set RGB and alpha values, ensuring consistent colors across animation frames.
Instructions
Add or update a color swatch in the Pencil2D project palette.
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": {
"project_path": "<project_path>",
"color_name": "<color_name>",
"red": "<red>",
"green": "<green>",
"blue": "<blue>"
},
"name": "pencil2d_manage_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| red | Yes | Red channel (0-255). | |
| blue | Yes | Blue channel (0-255). | |
| alpha | No | Alpha channel (0-255, default 255). | |
| green | Yes | Green channel (0-255). | |
| color_name | Yes | Name of the color swatch. | |
| project_path | Yes | Path to the .pclx file. |