find_project_for_file

[solution]

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

Why this tool exists

TypeScript and JavaScript workspaces can contain multiple projects, generated configs, path aliases, and live editor text.

How it helps the agent

The model can load, refresh, and inspect the workspace state it will use for later semantic calls.

Try it locally in the TGlider playground

Parameters

NameTypeRequiredDescription
filePathstringYesWorkspace-relative or absolute file path.

Examples

Find the owner project for a source file

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 for the file.

↑/↓ NavigateEnter OpenSpace Expand