MastraM
Mastra9mo ago
Omicrxn

Mastra ClientJS getTool not working

if i console log the client.getTools() i get something like:
tools:{
default:{
....(all the tools)
}
}


but when doing client.getTool('toolID') i get this:
Tool {
  options: { baseUrl: 'http://localhost:4111' },
  toolId: 'toolID'
}


and when doing tool.execute() i get a 404 tool not found error.

in the playground i also get the default tool which if i click contains all the tools
image.png
Was this page helpful?