get_alt_text
Retrieve the alt text and title of an image in a Word document using its zero-based index. Access accessibility metadata for images programmatically.
Instructions
Get the alt text and title for an image by 0-based index.
Args: image_index: 0-based index across all wp:docPr elements in document.xml.
Returns: {"image_index": int, "alt_text": str, "title": str}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |