get_file_dependents

[architecture]

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

Why this tool exists

Monorepo package relationships and import graphs are too large to reconstruct reliably from scattered file reads.

How it helps the agent

The model can reason from package, project, dependency, dependent, path, and cycle facts before editing architecture-sensitive code.

Try it locally in the TGlider playground

Parameters

NameTypeRequiredDescription
filePathstringYesWorkspace-relative or absolute file path.

Examples

Find files importing a module

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 and owning project context.

↑/↓ NavigateEnter OpenSpace Expand