get_image_data
An asset's image as a data: URI to put straight into HTML ( or a CSS background), for sandboxes that cannot load images from another site, such as Claude's HTML artifacts. For an animation or rotation frame it returns ONE horizontal sprite strip (all frames side by side, each size×size) plus a CSS snippet that plays it. Shrunk to fit a reply (small sizes are fine for sprites; scale them up in CSS with image-rendering: pixelated). Free.
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>"
},
"name": "get_image_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Asset ID (from list_assets / get_asset or a previous result) | |
| size | No | Pixels per image (square). Lowered automatically if the result would be too long | |
| frameId | No | Frame id from get_asset (an animation, rotation set or edit). Omit for the base image | |
| imageIndex | No | Only this image of the frame (e.g. one facing of a rotation set) instead of the strip |