[analysis]
Lists the visible public export surface for a project or a single file.
Public surfaces in JS/TS often flow through barrel files, type-only exports, and package entry points.
The model can inspect API shape directly before changing exports or dependent imports.
Try it locally in the TGlider playground
| Name | Type | Required | Description |
|---|---|---|---|
| projectName | string | No | Loaded project name. Provide exactly one of projectName or filePath. |
| filePath | string | No | Workspace-relative or absolute file path. Provide exactly one of filePath or projectName. |
| exportKind | string | No | Filter exports by 'all', 'value', or 'type'. |
List exports from one file
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_exports",
"arguments": {
"filePath": "src/index.ts"
}
}
}Returns exported names, source locations, and type/value metadata.