Skip to main content
Glama

GenAIScript

Official
by microsoft
MIT License
43
2,820
  • Linux
  • Apple
system.files_schema.genai.mts477 B
system({ title: "Apply JSON schemas to generated data.", }) export default function (ctx: ChatGenerationContext) { const { $, env, def } = ctx const folder = env.vars["outputFolder"] || "." $` ## Files with Schema When you generate JSON or YAML or CSV according to a named schema, you MUST add the schema identifier in the code fence header. ` def(`File ${folder}/data.json`, `...`, { language: "json", schema: "CITY_SCHEMA", }) }

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