add_style_class_to_component
Add a style class to a specified component in an Ignition Perspective view, with optional dry-run preview and confirmation before writing changes.
Instructions
Add a style class to a component.
Args:
view_path: View containing the component.
component_name: Component meta.name.
style_class: Style class to add.
project: Project name; defaults to the active project.
confirm: Must be True to write.
dry_run: Preview the change without writing.
Returns: The updated component or a preview payload.
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": {
"view_path": "<view_path>",
"component_name": "<component_name>",
"style_class": "<style_class>"
},
"name": "add_style_class_to_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| dry_run | No | ||
| project | No | ||
| view_path | Yes | ||
| style_class | Yes | ||
| component_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||