smart_code_search
Prioritize search results by code importance using CodeRank and ripgrep. Get context-aware, ranked matches to identify critical modules efficiently.
Instructions
Enhanced search that combines ripgrep with CodeRank to prioritize results from more important modules.
Args: keyword: Search term (supports regex) repo_path: Repository path working_directory: Working directory (absolute path) rank_results: Sort results by module importance context_lines: Lines of context around matches max_results: Maximum number of results to return
Returns: Search results prioritized by code importance
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"keyword": "<keyword>",
"repo_path": "<repo_path>",
"working_directory": "<working_directory>"
},
"name": "smart_code_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyword | Yes | ||
| repo_path | Yes | ||
| max_results | No | ||
| rank_results | No | ||
| context_lines | No | ||
| working_directory | Yes |