How do I define tools for an Agent?

HEAD
be60b73Fix browser bundling for @mastra/react and Web Streams typing in @mastra/client-js (#14079)
This post might have stale content, as HEAD is 10356 commits ahead.

how do i define tools for an Agent? do they automatically get "context" or some type of state they can use? how is this defined?


END OF POST

How do I define tools for an Agent? — mastra-ai/mastra