locate_surgical_context
Finds exact class and function bodies, dependencies, and external test references for a task, returning ~500 tokens of focused context instead of reading whole files.
Instructions
Zero Multi-File Guessing: Locates the exact class and function bodies, dependencies, and external test references needed for a task, returning ~500 tokens of surgical context without reading bloated files.
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": {
"task": "<task>"
},
"name": "locate_surgical_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Task description or target symbol names (e.g. 'Extract SleepInhibitor from cli.py') | |
| root_dir | No | Repository root path (default: '.') | . |
| target_symbols | No | Optional list of exact symbol names to extract context for |