get_context
Retrieve focused code context in batches: AST outlines, symbol bodies with imports/types, line matches, and scoped Git diffs, with token-efficient pagination.
Instructions
Batch AST reads. outline: signatures/names. symbol: code with imports/types, or explicit returns only. lines: literal match with contextLines. diff: changes/full scoped by file/symbol. Share a top-level file. Use sources:true for file/symbol labels. Continue with cursor or maxTokens:null.
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": {
"requests": "<requests>"
},
"name": "get_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| cursor | No | ||
| sources | No | ||
| requests | Yes | ||
| versions | No | ||
| maxTokens | No |