Type Alias: MastraTools
MastraTools =
ToolsInput
Tool record accepted by every Mastra Agent.tools field and by the
tools(plugins) callback on MastraAgentDefinition.
Alias of Mastra’s ToolsInput, so it already accepts:
- Mastra tools built with createTool (or
new Tool(...)) - Mastra tools built with the AppKit-shaped tool wrapper below
- Vercel AI SDK tools (
tool({ ... })fromai) - Provider-defined tools (e.g.
openai.tools.webSearch(...))
Existing tool libraries drop in as-is - nothing in this package forces a rebuild.