Write your tool
In an editor, run the
npx create-mosaia-toolcommand and answer the prompts. This will generate a tool codebase for you.Implement your tool call logic in
./src/index.tsand./src/tool-call.tsUpdate the
./.mosaiamanifest file.nameis user-facing. It's the name of the tool that will be displayed in the tool registry.descriptionis user-facing. It will also be displayed in the tool registry.schemais llm-facing. It tells the llm how to use your tool. It's identical to the tool call schema used by openai.envVarsis an array of any environment variables that you want injected into the tool at call-time. The user adding this tool to their agent will be asked to supply these env vars. They are set on a per-agent basis.
Push your code up to GitHub (has to be to the
mainbranch)Our deployment pipeline will begin and deploy your tool to the Mosaia platform.
Last updated