apply_style_to_node
Apply an existing local style to a target node, linking the node to that style for consistent design updates.
Instructions
Apply an existing local style (paint, text, effect, or grid) to a node, linking the node to that style.
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": {
"nodeId": "<nodeId>",
"styleId": "<styleId>"
},
"name": "apply_style_to_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Target node ID in colon format e.g. 4029:12345 | |
| target | No | For paint styles only — apply to 'fill' (default) or 'stroke' | |
| styleId | Yes | Style ID to apply (from get_styles) |