get_semantic_context
Retrieves file content and its local dependency tree to provide rich code context for analysis. Optionally outlines function signatures to reduce token usage.
Instructions
Returns the content of a file along with its local dependency tree, providing rich context for understanding the code.
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_semantic_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the file to analyze (relative to project root). | |
| depth | No | How many import hops to follow. Default: config value. | |
| outline_only | No | Return function/class/interface signatures without implementation bodies. Reduces tokens by 70–90%. Default: false. |