Generate Alt Text
sirv_generate_alt_textGenerates AI-written alt text for one image from a public URL or Sirv asset ID; when given an asset ID, it saves the new text to that asset.
Instructions
Write alt text for one image with AI. Give exactly one of image_url or asset_id.
With image_url, the tool returns the text and saves nothing. With asset_id, it writes the text for that library asset and saves it on the asset, in place of its old alt text.
The text follows the workspace's language and brand settings. To save alt text that you wrote yourself, use sirv_update_asset. Returns the alt text.
Credits: spends workspace credits. The cost depends on the model and options.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sirv_generate_alt_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | No | Workspace id from sirv_list_organizations, used with asset_id. Default: the workspace you signed in to | |
| asset_id | No | Id of a Studio library asset, from sirv_list_assets. The tool saves the text on the asset. Leave it out when you give image_url | |
| image_url | No | Public URL of an image to describe. The tool returns the text and saves nothing. Leave it out when you give asset_id |