get_file_context
Retrieve a file's functions, classes, imports, and relationships to other files to understand its role in the codebase.
Instructions
Get comprehensive context for a file: functions, classes, imports, and relationships to other files.
Use this when you need to understand what a file contains and how it connects to the rest of the codebase.
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": {
"file_path": "<file_path>"
},
"name": "get_file_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | Level of detail: "signatures", "summary" (default), or "full". | summary |
| file_path | Yes | Path to the file to inspect. | |
| include_hints | No | If True, append navigation suggestions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||