Replace a cloud design
update_designReplace a cloud design with a new version. The state being replaced is kept in the design's revision history, attributed to this API key by its label, so a person can see exactly what the agent changed and roll it back. Send the whole document — there is no partial update — and include a short message saying what changed, because that is what the history shows. Returns editorUrl: hand it back, and the person lands on the changed design with the change flagged as this key's and the previous state one click away. A design you send without circuits keeps the schematics already stored with it; send "circuits": {} only to delete them. Pass expectedUpdatedAt (the updatedAt get_design returned) so the update is refused (DESIGN_CHANGED) instead of replacing a change someone saved after you read the design; then read it again and apply your change to that copy.
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": {
"designId": "<designId>",
"design": "<design>"
},
"name": "update_design"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional new name. | |
| design | Yes | The complete new design document (schema v1). | |
| message | No | A one-line note describing the design you are SENDING, e.g. "swapped U2 for a buck to cut 1.8 W". It is stored with this state and follows it into the history when a later save replaces it. | |
| designId | Yes | ||
| expectedUpdatedAt | No | Optional: the updatedAt from get_design. If the design was saved after that (by the engineer in the editor, or another agent), nothing is written and the reply says DESIGN_CHANGED. |