get_context
Get a file, symbol, or component's relationships, signatures, hotspot and fix history in one call, with optional callers, references, or tests, to triage before reading source.
Instructions
Triage card for files / modules / symbols — relationships, not source bytes.
Returns summary, signatures with lines, hotspot, fix_history and
decision titles; either risk cue means get_risk. Batch targets in one
call. Whole file, body-elided and line-verified: include=["skeleton"]
in ONE call, or Read it; do not call get_symbol per signature. Rename:
include=["references"] is the whole edit set when ``complete``. Which
files in a directory lack tests: include=["files"] on it.
Args:
targets: paths, "path::Symbol", "component:<name>",
"change:<id>" (pr-123 or a sha), "package:<name>".
include: callers | callees | references (+ adds comments) | skeleton | skeleton+
| files | symbols (all, not top 15) | decisions | full_doc
| ownership | last_change | metrics | community | health
| doc_drift | changes | provenance | suspects | facts.
compact: False adds structure, imports, docstrings.
symptom: issue text or stack trace to rank ``suspects`` on.
repo: usually omitted.
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": {
"targets": "<targets>"
},
"name": "get_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| compact | No | ||
| include | No | ||
| symptom | No | ||
| targets | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |