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

Function render_tool_index

claw-code/src/tools.py:89–96  ·  view source on GitHub ↗
(limit: int = 20, query: str | None = None)

Source from the content-addressed store, hash-verified

87
88
89def render_tool_index(limit: int = 20, query: str | None = None) -> str:
90 modules = find_tools(query, limit) if query else list(PORTED_TOOLS[:limit])
91 lines = [f'Tool entries: {len(PORTED_TOOLS)}', '']
92 if query:
93 lines.append(f'Filtered by: {query}')
94 lines.append('')
95 lines.extend(f'- {module.name} — {module.source_hint}' for module in modules)
96 return '\n'.join(lines)

Callers 1

mainFunction · 0.85

Calls 2

find_toolsFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected