Skip to content

You are currently viewing documentation for0.1.0-alpha.4

Saved documentation for 0.1.0-alpha.4 (npm) / 0.1.0a3 (PyPI). Interactive tools use the current release. View latest documentation.

Wrap Mastra execute-shaped tools

When to use this

Use this guide when Mastra exposes a supported execute-style tool map and you want the same Node toolAdapter path used for other execute shapes. Prefer the adapter matrix and Node guide over inventing a complete Mastra sample. Full framework middleware, batch/stream and end-to-end Mastra execution are not qualified.

How to wrap execute shapes

Where Mastra exposes a supported execute-style tool map, use Node toolAdapter as for other execute shapes. Current evidence is a local shape fixture: id, description, inputSchema identity and execution context can be retained when the shape matches. No fabricated end-to-end Mastra sample is published here.

What to expect

Observe mode preserves original payloads, results and upstream exceptions. Installing and wrapping alone does not configure detection: the statistical guest is default; configure windows to detect. An empty recent() history is not a clean verdict. Selective repair stays off by default and needs reviewed rename rules plus independent verification. Python remains callable-only for this platform.

Reference

Confirm the matrix row before wrapping. The public Mastra page summarizes surface limits without replacing this how-to.