search_pages
Search through previously crawled pages using one or more keywords. Results are ranked by matches and include URL, title, and text snippet. Requires a prior crawl to have populated the data.
Instructions
Search through previously crawled pages by keyword.
Performs case-insensitive keyword search across page titles and text content.
Results are ranked by the number of matching query words found. Each result
includes the page URL, title, and a text snippet showing context around the
first match.
This is a read-only operation on local files — no network requests are made.
Requires a prior crawl_site call to have populated the pages.jsonl file.
Args:
query: Search query — one or more keywords separated by spaces. All words
are searched independently (OR logic). Example: "authentication API key".
jsonl_path: Full path to the pages.jsonl file from a previous crawl. If
empty, defaults to <MARKCRAWL_OUTPUT_DIR>/pages.jsonl.
max_results: Maximum number of results to return. Default: 10. Use lower
values for focused searches, higher for comprehensive surveys.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| jsonl_path | No | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |