Search a run's stored pages
search_pagesFind which pages of a project run contain some text or an element -- the last finished run unless run_id is given -- returning the matching URLs with how many pages were scanned. Use it to locate pages by what they say or contain; list_pages lists every page and get_page then reads one in full. It scans the stored copies and never fetches the site, so it is free and as fresh as the run. A selector search needs the run to have kept html (the rawHtml format); when none was kept the answer says so rather than reporting no matches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | What to look for, 1 to 200 characters. In content mode every word must appear and "quoted phrases" match as written; in selector mode a CSS selector, or an XPath starting with / or (. | |
| mode | No | 'content' (default) searches the extracted markdown; 'selector' searches the stored html. | content |
| run_id | No | A run's id, from start_run or the runId a list_pages answer carries; leave empty for the last finished run. | |
| project_id | Yes | The project's id, as list_projects or create_project returns it. |