Update image alt text
update_image_altSet the alt text for ONE image (by image id from get_resource). Writes to Shopify immediately. Good alt text describes the image for screen readers in ≤ 125 characters, with no 'image of' and no keyword stuffing. Empty string clears.
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": {
"imageId": "<imageId>",
"alt": "<alt>"
},
"name": "update_image_alt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | Yes | What the image actually shows, in ≤ 125 characters. Empty string clears the alt text. | |
| imageId | Yes | Image id from get_resource. Call get_image first to see what it shows. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| altText | No | ||
| missingAltCount | No | Remaining images without alt on the resource |