find_large_files
Flag source files over a configurable line threshold to identify candidates for refactoring or splitting.
Instructions
Flag source files that are unusually large — often a signal they're due for a refactor or split.
Args: path: Filesystem path to the repo root. threshold_lines: Minimum line count to be flagged (default 300). top_n: Max number of files to return, largest first (default 10).
Returns: List of {file, lines} dicts, sorted largest first.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_large_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| top_n | No | ||
| threshold_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |