delete_image
Remove an image from a Word document by specifying its relationship ID, including cleanup of the XML relationship entry.
Instructions
Remove the drawing containing the image with the given rId from the document.
Also removes the relationship entry from word/_rels/document.xml.rels.
Args: rId: The relationship ID of the image to delete (e.g. 'rId5').
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>"
},
"name": "delete_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |