add_asset
Add an image layer to a card. src is an image URL, such as one from upload_image or list_library. Pass spriteCoordinate to crop one pose of a sprite sheet.
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>",
"src": "<src>"
},
"name": "add_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 | Yes | ||
| width | No | CSS pixels on the 500px-tall card. | |
| height | No | CSS pixels on the 500px-tall card. | |
| rotation | No | Degrees, clockwise. | |
| screenshotId | Yes | ||
| spriteCoordinate | No | Crop rectangle on the source image, in source pixels. Use a pose from list_library. |