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}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image_index": "<image_index>",
"alt_text": "<alt_text>"
},
"name": "set_alt_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| alt_text | Yes | ||
| image_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |