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?):MastraTools
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.