ARNIM X3
09/02/2026, 6:15 AMBrendan O'Leary
09/03/2026, 9:40 PMTAVILY_SEARCH is being exposed correctly. In your notebook output, the model calls TAVILY_SEARCH directly, and the call then fails with No active connection found for toolkit(s) 'tavily' in this session. This is a connection-scope issue, not a direct-tools issue.
The session is created with user_id="Surebrec". A Tavily connection is available to that session only when it belongs to the same project and user ID, or when an eligible account is explicitly selected. Authorize Tavily for this session user before running the agent:
connection_request = session.authorize("tavily")
print(connection_request.redirect_url)
connection_request.wait_for_connection()
After completing the link, reconnect the MCP client or create a fresh session with the same user ID, then rerun the agent. If you want to reuse an existing dashboard connection instead, create the session with the user_id that owns that connection and select its ID through connected_accounts.
You do not need to change SESSION_PRESET_DIRECT_TOOLS or the TAVILY_SEARCH selection.ARNIM X3
09/04/2026, 9:53 AMTAVILY_SEARCH tool.
Also, one more thing! I have changed the code slightly to check if the composio account is already connected then we don't need to configure the api key for authorization again. for that i made modifications in the code cell - 6 using GPT.Brendan O'Leary
09/18/2026, 6:17 AMTAVILY_SEARCH is now available directly to the agent and the successful invocation confirms the session has an eligible Tavily connected account.
You should not need to enter the Tavily API key on every run when the existing connected account is reused. Keep the same project and stable user_id, and reuse the existing session or create an unpinned session for that same user. Only start a new authorization request when no eligible Tavily account exists, or when you intentionally need to replace it.
The agent message about not being able to run external actions does not reflect the actual tool availability in this case: a successful TAVILY_SEARCH call is an external tool execution through the authorized account.