edit_ui_design
edit_ui_design, an Arc-Tech MCP tool. Change a UI design: add_layers, update_layers (by id, only what changes), remove_layer_ids, and operations for…
Change a UI design: add_layers, update_layers (by id, only what changes), remove_layer_ids, and operations for moving, reordering, duplicating, grouping, aligning, components, colour tokens and text styles. All checked and saved together, or not at all.
Changes something. Needs a read & write token, and a reason.
Parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
design_id | string | Yes | |
add_layers | list of objects | No | |
update_layers | list of objects | No | Each with its "id" and only the fields that change. |
remove_layer_ids | list of strings | No | |
settings | object | No | |
operations | list of objects | No | Run in order after the fields above; see the description. |
version | integer | No | The version you read; refused if it has changed since. |
reason | string | Yes | Why, in one short sentence the team will read in the project’s activity log. |
Example arguments
{
"design_id": "<design id>",
"add_layers": [
{ "id": "device", "type": "artboard", "name": "Device", "x": 0, "y": 0, "w": 393, "h": 852, "fill": "#FFFFFF" },
{ "id": "form", "type": "group", "name": "Form", "parentId": "device", "x": 24, "y": 240, "w": 345, "h": 200,
"layout": { "direction": "column", "gap": 16, "align": "stretch", "hug": "height" } },
{ "id": "title", "type": "text", "name": "Title", "parentId": "form", "x": 24, "y": 240, "w": 345, "h": 36,
"text": "node-0412", "fontSize": 28, "fontWeight": 700, "lineHeight": 1.3, "color": "#111827" },
{ "id": "button", "type": "group", "name": "Restart button", "parentId": "form", "x": 24, "y": 292, "w": 345, "h": 48,
"fill": "#2563EB", "radius": 8,
"layout": { "direction": "row", "align": "center", "justify": "center", "padding": [14, 16, 14, 16], "hug": "height" } },
{ "id": "button-label", "type": "text", "name": "Label", "parentId": "button", "x": 24, "y": 306, "w": 120, "h": 20,
"text": "Restart device", "fontSize": 15, "fontWeight": 600, "lineHeight": 1.3, "color": "#FFFFFF", "align": "center" }
],
"operations": [
{ "op": "set_color", "id": "primary", "name": "Primary", "value": "#2563EB" },
{ "op": "update", "id": "button", "fillToken": "primary" },
{ "op": "set_text_style", "id": "heading", "name": "Heading", "fontFamily": "Inter", "fontSize": 28,
"fontWeight": 700, "lineHeight": 1.3, "letterSpacing": 0 },
{ "op": "apply_text_style", "ids": ["title"], "style_id": "heading" }
],
"reason": "Added the device screen"
}Guide
Every refusal says why, and nothing is saved. See errors and limits.