list_exports
[analysis]
Lists the visible public export surface for a project or a single file.
Try it locally in the TGlider playground
Parameters
| 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'. 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.