layout.setStyle
Configure visual properties of layout elements including colors, spacing, alignment, and responsive sizing to customize appearance in Circuitry workflows.
Instructions
Set style properties on a layout element.
Available style properties:
backgroundColor, borderColor, borderWidth, borderRadius, opacity
padding: { top, right, bottom, left }
gap (spacing between children)
justifyContent, alignItems (for flex/grid alignment)
widthMode, heightMode ('fixed' or 'flexible')
widthPercent, heightPercent (for responsive sizing)
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": {
"layoutId": "<layoutId>",
"style": "<style>"
},
"name": "layout.setStyle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layoutId | Yes | Layout ID or name | |
| style | Yes | Style properties to set |