Skip to main content
Glama

GenAIScript

Official
by microsoft
MIT License
43
2,820
  • Linux
  • Apple
tools.md689 B
--- layout: two-cols-header --- # Tool = JavaScript Function ::left:: ```mermaid {scale: 0.8} stateDiagram prompt : prompt (system + user messages + tools) tools: tools (web browser, code interpreter) response: response (raw text) pre: ... pre --> prompt prompt --> LLM: OpenAI API tools --> prompt: append tool output LLM --> tools: call LLM --> response ``` ::right:: - definition ```js defTool( "fs_read_file", "Reads a file as text from the file system.", { filename: { type: "string" }, }, async ({ filename }) => await workspace.readText(filename) ) ``` - usage ```js script({ tools: ["fs_read_file"]}) ... ```

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