apply_node_patch
Apply declarative patches to one or multiple canvas nodes in a single call, covering style, text, rename, move, delete, duplicate, and layout changes. Use dry-run to preview projected modifications before committing.
Instructions
Executes a unified declarative patch list (setStyle, setText, rename, move, delete, duplicate, setLayout) against one or many canvas nodes with dry-run support.
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": {
"patches": "<patches>"
},
"name": "apply_node_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true, returns projected changes without modifying the document. | |
| fileId | No | Optional target file ID. | |
| patches | Yes | List of patch mutations. |