# generate_alt_text

Source: https://heyeveryone.ai/docs/mcp/generate_alt_text

> Describe an image for screen readers and save it as the media asset's alt text. The image must be a ready image with a public URL.

Describe an image for screen readers and save it as the media asset's alt text. The image must be a ready image with a public URL.

Uses heyeveryone AI and costs 1 credits (1 credit per image). Tell the person before calling it.

## Access and cost

- Kind: mutation
- Scope: workspace
- Actors: member, agent
- Credits: 1 credit per image.
- Requires confirmation: false
- Accepts idempotency key: true

## Input schema

```json
{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "mediaAssetId": {
      "format": "uuid",
      "type": "string"
    },
    "context": {
      "maxLength": 500,
      "type": "string"
    },
    "idempotencyKey": {
      "maxLength": 200,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "workspaceId",
    "mediaAssetId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "altText": {
      "type": "string"
    }
  },
  "required": [
    "altText"
  ],
  "type": "object"
}
```

## Errors

```json
[
  "media_not_found",
  "media_not_ready",
  "ai_generation_failed",
  "insufficient_credits",
  "plan_limit_reached",
  "idempotency_conflict"
]
```

## Annotations

```json
{
  "destructiveHint": false,
  "idempotentHint": false,
  "openWorldHint": false,
  "readOnlyHint": false,
  "title": "Generate alt text"
}
```
