get_file_context
Inspect a file to identify its owning feature and component before editing, ensuring changes stay within the correct domain.
Instructions
Before modifying any file, call this to understand which feature and component owns it. This prevents accidental cross-feature changes and helps you stay within the right domain. For multi-repo projects, pass file paths in repo:path form (for example "web:src/app/page.tsx").
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filepath": "<filepath>"
},
"name": "get_file_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | The file path to inspect. Use repo:path for multi-repo projects (for example web:src/lib/auth.ts); single-repo projects can use repo-root-relative paths. |