tool_add_image
Add an image layer from a URL or data URL (small assets only; max ~2 MB data URL).
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": {
"design_id": "<design_id>",
"src": "<src>"
},
"name": "tool_add_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| fit | No | cover|contain | |
| src | Yes | https URL, data URL, or asset:<id> from upload-asset | |
| name | No | Layer name | |
| width | No | ||
| height | No | ||
| design_id | Yes | Design id from create-design |