Define a tool
A tool is backed by a workflow.defineWorkflow compiles the logic; defineTool creates the tool and deploys that workflow as its release.
tools/enrich.ts
Deploy and run
Where tools run
| Context | How |
|---|---|
| On demand | cargo-ai orchestration run create, or the Trigger tab |
| In a play | reference it in a workflow via uses |
| From an agent | list it in the agent’s tools |
| Over MCP | include it in defineMcpServer |
| Public form | expose the tool as an embeddable form — see Public form |
| API | POST /v1/tools/{id}/execute |
Learn more
Workflows
The DSL that backs every tool.
Triggering
Single runs, bulk runs, plays, agents, MCP, and the API.
Monitoring
Records, metrics, retries, and alerts.
Using the UI
Build the same tool in the visual editor.

