MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / find_tool_by_name

Function find_tool_by_name

src/tool_system/build_tool.py:216–220  ·  view source on GitHub ↗
(tools: Tools, name: str)

Source from the content-addressed store, hash-verified

214
215
216def find_tool_by_name(tools: Tools, name: str) -> Tool | None:
217 for t in tools:
218 if tool_matches_name(t, name):
219 return t
220 return None

Callers 7

partition_tool_callsFunction · 0.90
add_toolMethod · 0.90
run_tool_useFunction · 0.90
test_find_existingMethod · 0.90
test_find_missingMethod · 0.90

Calls 1

tool_matches_nameFunction · 0.85

Tested by 3

test_find_existingMethod · 0.72
test_find_missingMethod · 0.72