kernel_code_search
Search project source code with regex patterns and file glob filters to locate matching lines and file paths; results are restricted to the src/ directory.
Instructions
Search for a pattern in the project source code (grep). Returns matching lines with file paths. Restricted to src/ directory.
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": {
"pattern": "<pattern>"
},
"name": "kernel_code_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | File glob filter (e.g. '*.ts', '*.svelte'). Default: all files | |
| pattern | Yes | Search pattern (regex supported) | |
| max_results | No | Max results (default: 30) |