Skip to main content
Mastra is an opinionated TypeScript framework for AI agents and workflows. Mirage ships a tool factory that exposes a 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