Browse documentation

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

NameTypeRequiredDescription
filePathstringYesWorkspace-relative or absolute file path.
skipnumberNoNumber of matching results to skip. Default: 0
takenumberNoMaximum 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.