[analysis]
Returns a compact import, export, declaration, and member outline for a JS/TS source file.
Agents need enough file and API context to act without dumping entire source files into the prompt.
The model can read bounded source windows, outlines, and export surfaces before choosing the next specific tool.
Try it locally in the TGlider playground
| Name | Type | Required | Description |
|---|---|---|---|
| filePath | string | Yes | Workspace-relative or absolute file path. |
| skip | number | No | Number of matching results to skip. |
| take | number | No | Maximum number of matching results to return. |
Inspect file outline before reading source
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_structure",
"arguments": {
"filePath": "src/app.ts"
}
}
}Returns imports, exports, declarations, member spans, symbol keys, and diagnostics summary.