Top N Files
scc_top_filesIdentify the largest or most complex files in a directory by sorting on metrics like code lines or complexity. Customize with path, filters, and limit.
Instructions
List the top N files under a path, sorted by a chosen metric.
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": {
"params": "<params>"
},
"name": "scc_top_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | path (default CWD), response_format, filters, limit (default 10), and sort metric (default 'code'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |