Browse documentation

find_project_for_file

[solution]

Returns the loaded project that currently owns the given file path.

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 the owner project for a source file

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

Response Notes

Returns the owning project summary and module-resolution context for the file.