Board kit command
image.setAlt
Alternative text
Sets or removes a picture's alternative text, read by screen readers and exports.
- Kit
- Board 0.1.0 (.kboard)
- Changes the document
- yes
- Acts on
id(one id), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
alt | string | yes | Alternative text; empty removes it |
id | string | yes | The picture |
Call through board_run
text
board_run {
"path": "<file>.kboard",
"steps": [{ "command": "image.setAlt", "params": { "alt": <string>, "id": <string> } }]
}The required parameters, with placeholders for their types: not a tested example. board_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": {
"description": "Alternative text; empty removes it",
"type": "string"
},
"id": {
"description": "The picture",
"type": "string",
"x-khp-types": [
"Element"
]
}
},
"required": [
"alt",
"id"
],
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (board_commands through @kition/[email protected], built from KitionAI/kition-board@e78c190). As data: commands.jsonl.