update_drawing
Update drawing elements via low-level upserts, removals, or document changes. The engine validates all fields before writing.
Instructions
Low-level complete-element upserts, removes, or document changes. Fetch get_format for full element fields; the engine validates them before writing. Prefer patch_drawing for small label/style changes. Source and preview are opt-in.
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": {
"name": "<name>",
"expectedRevision": "<expectedRevision>"
},
"name": "update_drawing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact drawing file stem, without the .drawfather extension. Preserve the user-requested name; this is separate from design.title. | |
| seed | No | ||
| title | No | ||
| canvas | No | ||
| remove | No | ||
| sketch | No | ||
| upsert | No | ||
| preview | No | ||
| includeSource | No | ||
| expectedRevision | Yes |