update_image
Replace an existing image in a Word document with a new image while maintaining its size and position.
Instructions
Replace the binary for an existing image in-place.
The image dimensions and position in the document are preserved.
Args: rId: The relationship ID of the image to replace. new_image_path: Absolute path to the new image file on disk.
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": {
"rId": "<rId>",
"new_image_path": "<new_image_path>"
},
"name": "update_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rId | Yes | ||
| new_image_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |