image_relink
Replaces or relinks an InDesign image with a new file by page and item index, so you can update missing or outdated assets without manually relinking each frame.
Instructions
Relink/replace an image with a new file
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": {
"pageIndex": "<pageIndex>",
"itemIndex": "<itemIndex>",
"filePath": "<filePath>"
},
"name": "image_relink"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | ||
| itemIndex | Yes | ||
| pageIndex | Yes | ||
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. |