get_file_context
Retrieve a file's exports, signatures, imports, and reverse importers—plus optional snippets or recent diffs—to understand its role in a JS/TS codebase.
Instructions
What does this file export (signatures, lines), what does it import, and who imports it?
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": {
"path": "<path>"
},
"name": "get_file_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Repo-relative or absolute file path | |
| snippet | No | Add each export's source | |
| change_limit | No | Max diffs (default 3) | |
| absolute_paths | No | Print absolute paths | |
| include_changes | No | Add recent diffs |