search_project_code
Search project source for code patterns using grep, returning matching files with line numbers and content snippets.
Instructions
Search for code patterns in the project using grep. Returns matching files with line numbers and content snippets.
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>"
},
"name": "search_project_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search string or pattern to find | |
| file_types | No | File extensions to search (e.g., ['.py', '.js']) | |
| max_results | No | Maximum results to return (default: 20) |