get_file_summary
Get a file's structural summary: line count, functions/classes, imports, and a short excerpt, without reading the whole file.
Instructions
Returns a structural summary of a single file: line count, function/class count, its imports, and a short excerpt - without needing to read the whole file.
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": {
"repoPath": "<repoPath>",
"filePath": "<filePath>"
},
"name": "get_file_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the file, relative to repoPath | |
| repoPath | Yes | Absolute or relative path to the repository root |