MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / get_tool

Function get_tool

claw-code/src/tools.py:48–53  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

46
47
48def get_tool(name: str) -> PortingModule | None:
49 needle = name.lower()
50 for module in PORTED_TOOLS:
51 if module.name.lower() == needle:
52 return module
53 return None
54
55
56def filter_tools_by_permission_context(tools: tuple[PortingModule, ...], permission_context: ToolPermissionContext | None = None) -> tuple[PortingModule, ...]:

Callers 2

execute_toolFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected