Set image alt text, title and caption
set_image_textSet an image's alt text, title or caption per locale. Only the languages you give change: others are kept, and an empty string or null removes that language. Locale codes must be ones the website has (see list_scopes). Image text is shared by every page and environment and shows at once, so images live on pages you may not change are refused. Returns the image with its text in every language.
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": {
"mediaId": "<mediaId>"
},
"name": "set_image_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | Text by locale code, such as {"de-DE": "…"}. Languages left out are kept; an empty string or null removes one. | |
| title | No | Text by locale code, such as {"de-DE": "…"}. Languages left out are kept; an empty string or null removes one. | |
| caption | No | Text by locale code, such as {"de-DE": "…"}. Languages left out are kept; an empty string or null removes one. | |
| mediaId | Yes | The image's id, from an image field in get_page, from upload_media, or fix.mediaId in get_page_accessibility. |