Style elements
style_elementsSets fill, stroke, and label formatting on BPMN shapes and connections, changing only specified fields and returning each element's resulting style.
Instructions
Sets the colors and text formatting of shapes and connections, like the editor's Shape and Text panels. Each field is optional: only the fields given change. An empty string removes that setting. Colors are hexadecimal, for example #1E88E5. A connection only has a stroke. For a dark fill, set textColor to "auto" (or #FFFFFF) so the label stays readable. reset: true removes every color and text formatting of the element first. Returns the resulting style of each element. The user can undo it in one step.
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": {
"elements": "<elements>"
},
"name": "style_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elements | Yes |