import_image
Place a local PNG onto a battle map as an object using its absolute path, position, and optional size or rotation. Embeds the image in the saved map so it reopens without the source file.
Instructions
Place a local PNG on the map as an object, as dragging it in would.
path: absolute path to a PNG the user named; never guess one.
x, y: centre in woxels; width, height: unrotated size in woxels.
Omit height to keep the aspect ratio. The size includes transparent
margins. rotation is degrees. Alpha is kept.
The saved map holds the image, so it reopens without the file. The
returned id works with move, modify, duplicate, delete, undo and
checkpoints. The image does not join the asset library, so list_assets
will not find it. Reimporting changed bytes makes a new texture.
PNG only: at most 32 MiB, 8192 px per side and 16 million pixels.
For a reusable tagged library entry, use create_image_pack instead.
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": {
"path": "<path>",
"x": "<x>",
"y": "<y>",
"width": "<width>"
},
"name": "import_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| path | Yes | ||
| snap | No | ||
| layer | No | ||
| width | Yes | ||
| height | No | ||
| sorting | No | ||
| rotation | No | ||
| block_light | No |