whats_in_file
Get a hierarchical outline of all symbols in a file—functions, classes, and methods with signatures and line numbers—without loading file content, using roughly 100 tokens instead of 2000.
Instructions
Returns a hierarchical outline of all symbols in a file: functions, classes, methods with signatures and line numbers. No file content loaded. ~100 tokens vs ~2000 for reading the 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": {
"file_path": "<file_path>",
"repo": "<repo>"
},
"name": "whats_in_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name (as shown in list_repos) | |
| file_path | Yes | Relative file path within the repository (e.g., 'src/main.py') |