find_code
Locate relevant code ranges in supplied project files by query, returning paths, line ranges, and relevance probabilities without exposing code text.
Instructions
Locate relevant code within caller-supplied project files or line ranges. Evaluates every 200-line chunk with 20-line overlap, returns paths/ranges and relevance probabilities without code text. Discover candidate paths with your normal file listing first. Maximum 20 chunks and 1 MiB total text; oversized scopes fail before any paid call. One paid request per chunk, up to 3 concurrently. Returns every result, refusal and error; no automatic filtering or Read hook. Independent chunks cannot establish cross-file behavior.
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": {
"files": "<files>",
"query": "<query>"
},
"name": "find_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Prefer a native JSON array. A JSON-encoded array string is also accepted for client compatibility; identical validation applies. | |
| query | Yes | Self-contained question about the code to locate. |