---
layout: two-cols-header
---
# Script Automation for Alt-Text
::left::
## Image Alt-Text Script
```js
script({
title: "Image Alt Text generator",
model: "vision",
})
const file = env.files[0]
// skip if alt-text file already exists
const txt = await workspace.readText(file.filename + ".txt")
// context
defImages(file)
// task
$`You are an expert in assistive technology. You will analyze each image
and generate a description alt text for the image.
Save the alt text in a file called "${file.filename + ".txt"}".
`
```
::right::
<v-click>
## Deployed in GenAIScript Repo - Nightly Builds

</v-click>
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/microsoft/genaiscript'
If you have feedback or need assistance with the MCP directory API, please join our Discord server