set_alt_text
Define alt text for an image in a Word document using its zero-based index to improve accessibility.
Instructions
Set the alt text (and optionally title) on an image by 0-based index.
Args: image_index: 0-based index across all wp:docPr elements in document.xml. alt_text: Accessibility description to set on the image. title: Optional title attribute; removed from XML if empty.
Returns: {"image_index": int, "alt_text": str}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| alt_text | Yes | ||
| image_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |