Skip to main content
Glama
by microsoft
browse-text.genai.mts779 B
script({ model: "small", group: "browser", parameters: { headless: { type: "boolean", default: true, description: "Whether to run the browser in headless mode.", }, }, }) const { headless, recordVideo } = env.vars const page = await host.browse( "https://github.com/microsoft/genaiscript/blob/main/packages/sample/src/penguins.csv", { headless } ) const table = page.locator('table[data-testid="csv-table"]') const html = await table.innerHTML() const csv = (await HTML.convertTablesToJSON("<table>" + html + "</table>"))[0] csv.forEach((row) => delete row[Object.keys(row)[0]]) // remove the first column defData("DATA", csv) $`Analyze DATA and provide a short statistical summary. Use one paragraph.`

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