search_by_file
Search indexed files with natural language queries, filtered by file path patterns such as '.py' or 'models/'.
Instructions
Search indexed files, restricting results to paths matching a pattern.
Args: query: Natural language query. file_pattern: Glob-style pattern or substring for file paths (e.g. '.py', 'models/'). n_results: Optional number of results to return (default: 10).
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": {
"query": "<query>",
"file_pattern": "<file_pattern>"
},
"name": "search_by_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| file_pattern | Yes | ||
| n_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |