file_outline
Return a structured symbol outline for a source file—module, imports, classes, fields, functions, methods, variables, and type aliases—so you can inspect code structure without parsing the full file.
Instructions
Return the structured symbol outline (module, imports, classes/fields, functions/methods, variables, type aliases) of a source 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": "file_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Repository-relative file path (e.g. internal/service/orders.go). | |
| include_private | No | Include unexported/private symbols (default true). |