set_theme_color
Sets a named color for a control class in a Godot Theme resource using its path and hex value, enabling targeted theme color updates.
Instructions
Set a color entry in a Theme resource.
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": {
"theme_path": "<theme_path>",
"node_type": "<node_type>",
"name": "<name>",
"color": "<color>"
},
"name": "set_theme_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Color entry name (e.g. font_color) | |
| color | Yes | Color as hex string (#rrggbb or #rrggbbaa) | |
| node_type | Yes | Control class (e.g. Button, Label) | |
| theme_path | Yes | res:// path to the theme |