get_structure
[analysis]
Returns a compact import, export, declaration, and member outline for a JS/TS source file.
Try it locally in the TGlider playground
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| filePath | string | Yes | Workspace-relative or absolute file path. |
| skip | number | No | Number of matching results to skip. Default: 0 |
| take | number | No | Maximum number of matching results to return. |
Examples
Replace sample paths and symbol keys with values from your workspace.
Inspect file outline before reading source
Arguments
{
"filePath": "src/app.ts"
}Full MCP request
Full MCP request
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_structure",
"arguments": {
"filePath": "src/app.ts"
}
}
}Response Notes
Returns imports, exports, declarations, member spans, symbol keys, and diagnostics summary.