Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions marimo/_server/ai/tools/tool_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,14 @@ def _get_tool(
return None
else:
# No source specified, check all sources
all_tools = self._get_all_tools()
for tool in all_tools:
if tool.name == name:
return tool
tool = self._tools.get(name)
if tool is not None:
return tool

mcp_tools = self._list_mcp_tools()
for mcp_tool in mcp_tools:
if mcp_tool.name == name:
return mcp_tool
return None

def _validate_backend_tool_arguments(
Expand Down