Skip to main content
Glama
by microsoft
code-map.genai.mts973 B
script({ accept: ".md,.mdx,.ts", }) const { output } = env // generate map const { text: map } = await runPrompt( (ctx) => { const code = ctx.def("CODE", env.files) ctx.$`You are an expert cartographer, prompt genius and omniscient code developer. You will summarize the code in the files ${code} and generate a description of a physical map. The description will be used by a LLM to generate an image of the map. The map will be used to visualize the code and its structure. Be descriptive about the visual features of the map as you would for a real map. The model has a context window of 4096 tokens. Use names from the code symbols. `.role("system") }, { label: "summarize code to map", model: "large", } ) output.fence(map) // generate image const { image } = await generateImage(map, { model: "image", quality: "high", size: "portrait", }) await output.image(image.filename)

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