refactor_design_structure
Refactor canvas design structure by renaming semantic layers, normalizing 8pt spacing, and flattening redundant wrappers, with dry-run preview.
Instructions
Safely refactors canvas structure (semantic layer renaming, 8pt spacing normalization, flattening redundant wrappers) with dry-run support.
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": {
"artboardId": "<artboardId>",
"strategy": "<strategy>"
},
"name": "refactor_design_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true, returns projected refactor changes without modifying canvas. | |
| fileId | No | Optional target file ID. | |
| strategy | Yes | Refactoring strategy. | |
| artboardId | Yes | Target artboard ID to refactor. |