get_alt_text
Retrieve the alt text and title for an image in a Word document by specifying its 0-based index.
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}
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>"
},
"name": "get_alt_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |