file_context
Reads a file's source code with its local dependency paths, so coding agents understand imports without loading the entire project.
Instructions
Return a file's source plus the paths of its local dependencies.
Use this to read one file with awareness of what it pulls in, without loading the whole project.
Args: path: repo-relative path, e.g. "src/importlens_mcp/server.py".
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": "file_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |