find_code_patterns
Search for recurring code patterns across functions in Haskell codebases to identify common implementations and potential refactoring opportunities.
Instructions
Find recurring code patterns across functions
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": {
"pattern_code": "<pattern_code>"
},
"name": "find_code_patterns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern_code | Yes | Code snippet pattern to search for | |
| min_matches | No | Minimum number of lines that must match | |
| module_pattern | No | Module name pattern to filter search (optional) | |
| limit | No | Maximum number of functions to return |