Search snapshot file contents
src_grepUse this tool to search stored source for app_id and a regex pattern. Optionally select version, path, glob and case_insensitive; control results with output_mode, context or before_context/after_context, line_numbers, max_file_size and continuation_token. Omitted version reads the latest attempted snapshot. MCP version 2.12.
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": {
"app_id": "<app_id>",
"pattern": "<pattern>"
},
"name": "src_grep"
}
}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. Omit to use the latest stored snapshot (last_attempt_version). | |
| mcp_version | No | Set to "2.12", the MCP version in this tool's description. Use this tool's version, not another tool's 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 |