# edit_design

> edit_design, an Arc-Tech MCP tool. Change an architecture design in one go, all checked and saved together: add_nodes (whole components: {id, type, name,…

Source: https://arc-tech.dev/docs/tools/edit_design

Change an architecture design in one go, all checked and saved together: add_nodes (whole components: {id, type, name, position: {x, y}, properties, parentId (a group), size: {width, height} for groups, environments: {<env id>: {enabled, overrides}}}), update_nodes (by id, only what changes; properties and environments merge one level down; move with position, resize a group with size), remove_node_ids (their connections go too; a removed group’s members stay), add_edges ({id, source, target, relationshipType, label}), update_edges, remove_edge_ids, environments (the whole list: [{id, name, color}]), name, description. Prefer it over the single-component tools for anything bigger.

**Changes something.** Needs a read & write token, and a `reason`.

## Parameters

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `design_id` | string | Yes |  |
| `add_nodes` | list of objects | No |  |
| `update_nodes` | list of objects | No |  |
| `remove_node_ids` | list of strings | No |  |
| `add_edges` | list of objects | No |  |
| `update_edges` | list of objects | No |  |
| `remove_edge_ids` | list of strings | No |  |
| `environments` | list of objects | No |  |
| `name` | string | No |  |
| `description` | string | No |  |
| `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

```json
{
  "design_id": "<design id>",
  "add_nodes": [
    { "id": "sensors", "type": "custom", "name": "Sensor nodes", "position": { "x": 0, "y": 120 },
      "properties": { "description": "Temperature and humidity, every 60 s", "status": "active" } },
    { "id": "broker", "type": "pubsub", "name": "MQTT broker", "position": { "x": 320, "y": 120 },
      "properties": { "provider": "MQTT", "status": "active" } },
    { "id": "processor", "type": "worker", "name": "Stream processor", "position": { "x": 640, "y": 120 },
      "properties": { "runtime": "Python 3.12", "replicas": 8, "status": "active" },
      "environments": { "env-dev": { "overrides": { "replicas": 1 } } } },
    { "id": "db", "type": "postgres", "name": "Telemetry database", "position": { "x": 960, "y": 40 },
      "properties": { "engine": "PostgreSQL", "version": "16", "port": 5432, "status": "active" } },
    { "id": "alerts", "type": "queue", "name": "Alert queue", "position": { "x": 960, "y": 220 },
      "properties": { "status": "draft" },
      "environments": { "env-dev": { "enabled": false } } }
  ],
  "add_edges": [
    { "id": "e1", "source": "sensors", "target": "broker", "relationshipType": "publishes_to", "label": "MQTT" },
    { "id": "e2", "source": "processor", "target": "broker", "relationshipType": "consumes_from" },
    { "id": "e3", "source": "processor", "target": "db", "relationshipType": "writes_to" },
    { "id": "e4", "source": "processor", "target": "alerts", "relationshipType": "publishes_to" }
  ],
  "reason": "Added the ingest path, from the sensors to storage and alerts"
}
```

## Guide

See [Build architecture with AI](https://arc-tech.dev/md/build-architecture.md).

Every refusal says why, and nothing is saved. See [errors and limits](https://arc-tech.dev/md/errors.md).
