---
title: "accessibility.setAlt: Set alternate text — PDF kit command — Kition"
description: "Set a figure's alternate text (alt; empty or omitted clears it), or mark it decorative (decorative: true: its content becomes an artifact and the figure leaves the tags). figure is a number from accessibility.listFigures. Returns the figures. Undoable."
canonical: "https://developer.kition.ai/docs/kits/pdf/commands/accessibility.setAlt"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/pdf/commands/accessibility.setAlt](https://developer.kition.ai/docs/kits/pdf/commands/accessibility.setAlt)

# accessibility.setAlt

**Set alternate text.** Set a figure's alternate text (alt; empty or omitted clears it), or mark it decorative (decorative: true: its content becomes an artifact and the figure leaves the tags). figure is a number from accessibility.listFigures. Returns the figures. Undoable.

- Kit: PDF 0.1.0 (.pdf); reference: [PDF kit commands](https://developer.kition.ai/docs/kits/pdf.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `alt` | `string` | no |  |
| `decorative` | `boolean` | no |  |
| `figure` | `integer` | yes | (minimum 1) |

## Call through pdf_run

```text
pdf_run {
  "path": "<file>.pdf",
  "steps": [{ "command": "accessibility.setAlt", "params": { "figure": <integer> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `alt`, `decorative`. pdf_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "alt": {
      "type": "string"
    },
    "decorative": {
      "type": "boolean"
    },
    "figure": {
      "description": "(minimum 1)",
      "type": "integer"
    }
  },
  "required": [
    "figure"
  ],
  "type": "object"
}
```

Generated from the command list of @kition/pdf-darwin-arm64@0.1.0 and the kit itself (pdf_commands through @kition/cli@0.1.1, built from KitionAI/kition-pdf@b0d2725).
