update_shape
Update a shape in a tldraw .tldr file by merging partial shape fields or nested props. Requires file path, shape ID, and patch object.
Instructions
Update a shape via shallow merge. Pass nested {"props": {...}} to update props.
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": {
"file": "<file>",
"id": "<id>",
"patch": "<patch>"
},
"name": "update_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to a .tldr file | |
| id | Yes | ||
| patch | Yes | Partial shape fields to merge (top-level or nested under "props") |