Search snapshot file contents
src_grepUse this when you need to search for patterns in an app's source code. Returns matching lines with optional context. Supports regex patterns, glob filters, and multiple output modes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | Glob pattern to filter files (e.g., '*.ts') | |
| path | No | Directory path to search within | |
| app_id | Yes | Target app id | |
| context | No | Lines before and after (overrides before/after_context) | |
| pattern | Yes | Regex pattern to search for (max 500 chars) | |
| version | No | Version to search (defaults to applied version) | |
| output_mode | No | content=matching lines, files_with_matches=file paths only, count=match count per file | content |
| line_numbers | No | Include line numbers in output | |
| after_context | No | Lines to show after each match (0-20) | |
| max_file_size | No | Max file size to scan in bytes (default 10MB) | |
| before_context | No | Lines to show before each match (0-20) | |
| case_insensitive | No | Enable case-insensitive matching | |
| continuation_token | No | Token from previous response for pagination |