Browse documentation

list_exports

[analysis]

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

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'. Default: "all"

Examples

Replace sample paths and symbol keys with values from your workspace.

List exports from one file

Arguments
{
  "filePath": "src/index.ts"
}
Full MCP request
Full MCP 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, type/value metadata, and package-export entrypoints for project-scoped public surfaces.