Write alt text for an image
cloudcdn_ai_altGenerate alt text for one CDN image path with CloudCDN's vision model to support accessibility and SEO.
Instructions
Generate alt text for one image with CloudCDN's vision model, for accessibility or SEO. To check whether an image is safe to publish use cloudcdn_ai_moderate instead; to find images use cloudcdn_assets or cloudcdn_search. Calls GET /api/ai/alt-text and returns its JSON: url (the path sent), alt (the suggested text), model (the vision model), source ("ai" when generated now, "cached" when served from the API's cache), degraded (true for a cached answer) and dateGenerated (ISO 8601). Changes nothing in the catalogue, but the API caches the text per path for 24 hours, so a repeat call returns the same text. Fails: an absolute http(s) URL, or a path containing "..", is rejected (HTTP 400, exit code 69); an image the API cannot fetch, HTTP 404 (exit code 69); the vision model unavailable or its daily budget used up, HTTP 503 (exit code 75 after retries); no valid key, HTTP 401 (exit code 77).
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": {
"url": "<url>"
},
"name": "cloudcdn_ai_alt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The image's path on the CDN, not an absolute URL: the path field from cloudcdn_assets or cloudcdn_search with a leading slash, e.g. "/acme/v1/hero.webp". |