Workspace as five createTool() instances (execute, readFile, writeFile, editFile, ls) ready to plug into new Agent({ tools }).
Node only. The Mirage adapter is runtime-agnostic, but most Mastra setups (memory, evals, workflows) depend on Node APIs.
Install
Usage
Exports
Tool reference
The execute signature follows Mastra v1:
execute(inputData, context). You don’t need to call it directly, the agent runtime invokes it on tool calls.
Examples
examples/typescript/agents/mastra/ram_mastra.ts, RAM-only sandbox driven bygpt-5.4-mini.