Write your tool
In an editor, run the
npx create-mosaia-tool
command and answer the prompts. This will generate a tool codebase for you.Implement your tool call logic in
./src/index.ts
and./src/tool-call.ts
Update the
./.mosaia
manifest file.name
is user-facing. It's the name of the tool that will be displayed in the tool registry.description
is user-facing. It will also be displayed in the tool registry.schema
is llm-facing. It tells the llm how to use your tool. It's identical to the tool call schema used by openai.envVars
is 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
main
branch)Our deployment pipeline will begin and deploy your tool to the Mosaia platform.
Last updated