set_theme_constant
Assign an integer constant to a control type within a Godot theme resource, enabling precise control over layout properties like spacing.
Instructions
Set a constant value in a theme
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": {
"path": "<path>",
"theme_type": "<theme_type>",
"name": "<name>",
"value": "<value>"
},
"name": "set_theme_constant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Constant name (e.g. 'hseparation', 'vseparation') | |
| path | Yes | Theme resource path | |
| value | Yes | Constant integer value | |
| theme_type | Yes | Control type |