Skip to main content
Glama

GenAIScript

Official
by microsoft
MIT License
43
2,820
  • Linux
  • Apple
script-intro.md652 B
--- layout: two-cols --- # GenAIScript ## Scripts your LLMs Each GenAIScript is JavaScript that defines a call/return to an LLM - `def` is for context - `$` is for instructions GenAIScript - Optimizes context for LLM - Send request to LLM - Process LLM output &nbsp; ::right:: ## Example - `summarizer.genai.mts` ```js // metadata and model configuration script({ model: "small", accept: ".txt" }) // insert the context, define a "FILE" variable def("FILE", env.files) // $ appends text to the prompt $`Summarize <FILE>.` ``` - execute on all .txt files ```sh genaiscript run summarizer **.txt ``` https://microsoft.github.io/genaiscript

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