set_alt_text
Set the alt text for an image in a Word document by specifying its zero-based index. Optionally also set a title.
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 |
|---|---|---|---|
| image_index | Yes | ||
| alt_text | Yes | ||
| title | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |