List definitions in a file
list_definitionsGet a structural outline of source files: list classes, functions, methods, fields, and structs with their line ranges, enabling navigation without reading the entire file.
Instructions
List definitions (classes, functions, methods, fields, structs...) in a source file with name, kind and line ranges. Structural alternative to reading the whole file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | file path | |
| language | No | override language inference |