extract_images
Extract and save images from a DOCX file by specifying the file path. Optionally define an output directory to store the extracted images, simplifying image retrieval from Word documents.
Instructions
Extract and list images from a DOCX file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
file_path | Yes | Path to the .docx file | |
output_dir | No | Directory to save extracted images (optional) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"file_path": {
"description": "Path to the .docx file",
"type": "string"
},
"output_dir": {
"description": "Directory to save extracted images (optional)",
"type": "string"
}
},
"required": [
"file_path"
],
"type": "object"
}