search_focused_context
Get full function and class definitions across multiple files by reusing a prior search query, narrowing to relevant source files and returning complete blocks instead of truncated snippets.
Instructions
Use this only after search_repo_context when the relevant code is spread across multiple files and you need full enclosing functions, classes, or similar definitions instead of truncated snippets. It reuses a prior query_id, narrows to a few files, prefers source files, and returns complete matching blocks without dumping whole files.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_focused_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subpath | No | ||
| keywords | No | ||
| query_id | No | ||
| directory | No | ||
| max_files | No | ||
| file_paths | No | ||
| match_mode | No | substring | |
| max_blocks | No | ||
| max_total_lines | No | ||
| paths_exclude_glob | No | ||
| paths_include_glob | No | ||
| max_blocks_per_file | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||