360° view of a symbol or file
contextRetrieves a symbol or file’s code, callers, callees, members, imports, and related tests so you can trace behavior and assess change impact.
Instructions
Everything about one symbol or file: its code, who calls it (with call-site lines), what it calls, subtypes, members, imports, importers and the tests that touch it. Large fixture trees are skipped until targeted (target one, or pass --include-fixtures). Target forms: path/to/file.ts, file.ts:42, Class.method, Class::method, or a bare name.
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": {
"target": "<target>"
},
"name": "context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Repository root. Defaults to the client's workspace root or the server's working directory. | |
| format | No | text (default, compact, file:line cited) or json. | |
| target | Yes | ||
| code_lines | No | Lines of source to include for a symbol (default 60, 0 for none). |