https://linen.dev logo
Composio mastra provider Cant set
# 🖥│support-forum
a
support request from @yairtheyair in #1170786067595661432
Copy code
Composio + mastra provider:
Can't set connected account id
Original message link: https://discord.com/channels/1170785031560646836/1170786067595661432/1425195759330132091 --- beep boop, I've moved this conversation here so the support team can get back to you sooner. Could you please share your debugging info if you have not already? https://docs.composio.dev/resources/debugging-info
y
Not much debugging info needed, just create a new composio instance with mastra and show how to do a connected account tool call, have not found in docs (and also searched the source code)
a
Hey there, you can use before execute to pass the connectedAccId. Here's the guide:
y
Should be an simpler official way to do instead of before
a
Hey, using beforeExecute to pass the connected account ID is the official way to do this. While our intended approach is to use User ID (since it works across multiple toolkits), we understand some users prefer working with connected account IDs directly, so we've provided this method as the official way to handle it