© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
access Workflow State inside a tool - Mastra
M
Mastra
•
3mo ago
•
5 replies
kukelia
access Workflow State inside a tool
Tools
how can a mastra tool access workflow state
? i have a tool that requires user
_id to fetch that user
's data
, but i dont want the model to hallucinate the id
, so im storing it in the workflow state
Mastra
Join
The TypeScript Agent FrameworkFrom the team that brought you Gatsby: prototype and productionize AI features with a modern JavaScript stack.
5,321
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Access toolRunId inside tool's execute function
M
Mastra / help-bugs-problems
7mo ago
How to access stream from workflow as agent tool and resume workflow?
M
Mastra / help-bugs-problems
5mo ago
Accessing messages inside a tool callback
M
Mastra / help-bugs-problems
5mo ago