Edit a figure or connector
update_shapePatch one existing object without replacing other objects. Requires editToken and latest revision; returns the new revision. Read the drawing first to inspect existing fields.
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": {
"id": "<id>",
"editToken": "<editToken>",
"revision": "<revision>",
"shapeId": "<shapeId>",
"changes": "<changes>"
},
"name": "update_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Public drawing UUID (last component of its /draw/<uuid> URL). | |
| changes | Yes | Top-level fields to replace. Cannot change id or type. style/start/end replace the whole subobject; read it first to preserve other fields. | |
| shapeId | Yes | ID of the existing figure or connector to change. | |
| revision | Yes | Revision from create_drawing, get_drawing or the previous edit. Stale revisions fail; read again before retrying. | |
| editToken | Yes | Private editing capability returned by create_drawing. Never place it in a URL or public answer. |