Add Image to Document
add_image_to_documentEmbed a PNG or JPEG image into a Word document with custom width, height, and alignment. Specify the target .docx file and image path to control placement precisely.
Instructions
Embeds a PNG/JPEG image into a Word document with specified width, height, and alignment.
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": {
"filePath": "<filePath>",
"imagePath": "<imagePath>"
},
"name": "add_image_to_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| align | No | Image alignment | center |
| widthPx | No | Display width in pixels | |
| filePath | Yes | Path to target .docx file | |
| heightPx | No | Display height in pixels | |
| imagePath | Yes | Path to input image file |