instant_content_search
Search file contents with ripgrep and get matches grouped by file. Filter by glob, regex, or literal text to locate exact code across large repositories.
Instructions
Search file contents with ripgrep; groups matches by file. Use output_mode="files_only" first on broad queries.
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": "instant_content_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Regex or literal string | |
| file_glob | No | Glob filter (e.g. "*.ts", "!*.test.*") | |
| no_ignore | No | Ignore .gitignore rules | |
| is_literal | No | Treat pattern as literal text (-F) | |
| whole_word | No | Match whole words (-w) | |
| max_matches | No | Max matches (default: 50, max: 200) | |
| output_mode | No | Output format (default: matches) | matches |
| target_path | No | Directory or file path (defaults to ".") | |
| context_lines | No | Context lines 0-3 (default: 0) | |
| include_hidden | No | Include hidden/dot files and folders (skips .git) | |
| max_line_length | No | Truncate lines beyond N chars (default: 500) | |
| case_insensitive | No | Case-insensitive (-i, default: true) | |
| search_compressed | No | Search inside .gz/.zst streams (-z) |