Support for after or before tool callbacks?

Hello, is there support in Mastra agents for executing callbacks before or after a tool call is made? I’m looking for a way to intercept or hook into the tool execution flow — for example, to log, modify inputs/outputs, or trigger additional actions around tool invocations.
1 Reply
Mastra Triager
Mastra Triager20h ago
GitHub
[DISCORD:1430472985499926528] Support for after or before tool call...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1430472985499926528 Hello, is there support in Mastra agents for executing callbacks before or after a too...

Did you find this page helpful?