list_exports

[analysis]

Lists the visible public export surface for a project or a single file.

Why this tool exists

Public surfaces in JS/TS often flow through barrel files, type-only exports, and package entry points.

How it helps the agent

The model can inspect API shape directly before changing exports or dependent imports.

Try it locally in the TGlider playground

Parameters

NameTypeRequiredDescription
projectNamestringNoLoaded project name. Provide exactly one of projectName or filePath.
filePathstringNoWorkspace-relative or absolute file path. Provide exactly one of filePath or projectName.
exportKindstringNoFilter exports by 'all', 'value', or 'type'.

Examples

List exports from one file

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_exports",
    "arguments": {
      "filePath": "src/index.ts"
    }
  }
}

Response Notes

Returns exported names, source locations, and type/value metadata.

↑/↓ NavigateEnter OpenSpace Expand