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.
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": "<file>"
},
"name": "list_definitions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | file path | |
| language | No | override language inference |