Set a media file's alternative text
update_mediaSet or clear the alternative text of a library image or video. It belongs to the file, not to a post: every post and platform that publishes this file sends the same text (where the network supports alt text). Use list_media to see which files have none.
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>",
"altText": "<altText>"
},
"name": "update_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| altText | Yes | The description a screen reader announces (max 1000 characters); null or an empty string clears it | |
| mediaId | Yes | The media ID (from list_media) | |
| organizationId | No | Organization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| altText | No |