add_image_to_docx
Inserts an image into a DOCX file at a specified path. Optionally set image width and save to a different file.
Instructions
Add an image to a DOCX 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": {
"file_path": "<file_path>",
"image_path": "<image_path>"
},
"name": "add_image_to_docx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the .docx file | |
| image_path | Yes | Absolute path to the image file | |
| output_path | No | Save to different path | |
| width_inches | No | Image width in inches |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |