browser_search_snapshot
Search browser snapshots using regex patterns to locate specific elements without reloading entire pages. This tool helps find matching lines in compressed DOM snapshots for efficient web automation.
Instructions
Search current snapshot with regex.
Requires: Call snapshot first. Returns: Matching lines with refs.
Options:
pattern: Regex pattern to search for
ignoreCase: Case-insensitive matching (default: false)
lineLimit: Max lines to return (default: 100)
Use this to find specific elements in large pages without re-reading the entire snapshot.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Regex pattern to search for in the snapshot | |
| ignoreCase | No | Whether to ignore case when matching | |
| lineLimit | No | Maximum number of lines to return (1-100) |