Outline symbols
outline_symbolList a source file's top-level functions, classes, types, and interfaces with line numbers so you can understand its structure before reading or refactoring.
Instructions
List a source file's top-level symbols (functions, classes, types, interfaces) with line numbers. Use when: you want a file's structure before reading or refactoring it. Avoid when: you need usages (symbol_references), a text search (search) or the text itself (read_file). Output: total_symbols, symbols[] {name, kind, line, signature}.
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": {
"relative_path": "<relative_path>"
},
"name": "outline_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Optional language hint (e.g. 'ts', 'py'); the parser auto-detects from the file extension when omitted. The hint is advisory. | |
| max_symbols | No | Max symbols returned (default 200, max 500). | |
| relative_path | Yes | Workspace-relative ('.' = root); absolute/.. outside it rejected. | |
| include_classes | No | true includes class/interface symbols (default true). | |
| include_functions | No | true includes function symbols (default true). |