set_alt_text
Set alternative text on an image in a Word document using its zero-based index, with an optional title attribute for improved 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 |
|---|---|---|---|
| image_index | Yes | ||
| alt_text | Yes | ||
| title | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |