replace_masked_image
Replace a named raster image inside its existing clipping mask while preserving the rectangle and stacking order; choose linked or embedded. Rejects rotated, mirrored, or aspect-mismatched images.
Instructions
Replace a named raster inside its existing clipping group while preserving the image rectangle and stacking. Explicitly choose linked or embedded. Rejects rotated/sheared/mirrored images and aspect mismatches before replacement; use a template-specific script for them.
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": {
"document_path": "<document_path>",
"root_layer_path": "<root_layer_path>",
"item_name": "<item_name>",
"file_path": "<file_path>",
"embed": "<embed>"
},
"name": "replace_masked_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| embed | Yes | ||
| file_path | Yes | ||
| item_name | Yes | ||
| document_path | Yes | ||
| root_layer_path | Yes | ||
| require_clipping | No |