Browse documentation

get_file_dependents

[architecture]

Lists files that depend on the requested source file through imports or re-exports.

Try it locally in the TGlider playground

Parameters

NameTypeRequiredDescription
filePathstringYesWorkspace-relative or absolute file path.

Examples

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

Find files importing a module

Arguments
{
  "filePath": "src/api/client.ts"
}
Full MCP request
Full MCP request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_file_dependents",
    "arguments": {
      "filePath": "src/api/client.ts"
    }
  }
}

Response Notes

Returns direct file dependents with target and dependent project module context.