update_asset
Update an image layer on a screenshot in the open editor.
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": {
"screenshotId": "<screenshotId>",
"assetId": "<assetId>"
},
"name": "update_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Layer center, in percent of the card width from the card center. 50 is the right edge. | |
| y | No | Layer center, in percent of the card height from the card center. 50 is the bottom edge. | |
| src | No | ||
| width | No | CSS pixels on the 500px-tall card. | |
| height | No | CSS pixels on the 500px-tall card. | |
| assetId | Yes | ||
| rotation | No | ||
| screenshotId | Yes |