Interface: MastraPluginToolkitProvider
Toolkit provider shape every entry in the MastraPlugins map
exposes. Identical to AppKit’s PluginToolkitProvider - any AppKit
plugin that implements the standard ToolProvider interface
(getAgentTools + executeAgentTool + toolkit) is reachable
through this surface automatically.
Methods
Section titled “Methods”toolkit()
Section titled “toolkit()”toolkit(
opts?):ToolsInput|Promise<ToolsInput>
Returns a Mastra-shaped tools record adapted from the plugin’s
agent tools. Each tool dispatches back through the plugin’s
executeAgentTool so OBO auth and telemetry spans stay intact.
Parameters
Section titled “Parameters”ToolkitOptions
Returns
Section titled “Returns”ToolsInput | Promise<ToolsInput>