Find in page snapshot
browser_findSearch the accessibility snapshot of the current page for text or a regular expression. Returns matching snapshot nodes with a few lines of surrounding context (like search snippets), each shown under its path from the root of the tree, which is cheaper than capturing the whole snapshot when you only need to locate an element and its ref. Takes the session_id from open_browser. 0.1¢ a step that runs.
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": {
"session_id": "<session_id>"
},
"name": "browser_find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Plain text to search for in the page snapshot (case-insensitive substring match). Provide either text or regex, not both. | |
| regex | No | Regular expression to search for in the page snapshot. Matching is case-sensitive by default; wrap the pattern in slashes to add flags, e.g. "/error/i" for case-insensitive. Provide either text or regex, not both. | |
| filename | No | Save results to a file instead of returning them in the response. Relative file names are resolved against the workspace root. | |
| maxResults | No | Maximum number of matching items to return. Defaults to returning all matches. | |
| session_id | Yes | The session id open_browser returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The address of the page after the step. | |
| error | No | Why the step failed, when it failed. | |
| title | No | The page title. | |
| read_at | No | When the page was read. | |
| took_ms | No | How long the step took. | |
| price_usd | No | What the step cost, in dollars. |