get_file_context
Retrieves imports, callers, related files, and type definitions for any source file to clarify its role in the codebase.
Instructions
Get rich context for a source file: imports, callers (who uses this file), related files, and type definitions used. Helps understand a file's role in the codebase.
Requires: index_repository must be called first.
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": {
"repo_path": "<repo_path>",
"file_path": "<file_path>"
},
"name": "get_file_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Path to the indexed repository | |
| file_path | Yes | File path relative to repo root (e.g., 'src/local_deepwiki/server.py') | |
| detail_level | No | Output detail: standard (default) or full (adds entities, related tests, recent commits) |