Search expressions in a page HTML and return surrounding context.
Fetch the HTML of a given URL and search for one or more expressions in it.
For each occurrence found, the agent returns the matching text along with
a configurable number of characters of context on each side. Each expression
can be a literal substring (default) or a Python regular expression, and is
configured independently (case sensitivity, max matches, context size).
Playground
Log inLog in to try this tool. The request uses your session.
POST
item
urlrequired
The URL to fetch the HTML from. Temporary uploaded URLs on https://app.botify.com/:organization/:project/o/storage/tmp are allowed.
config
save_to_tmp_storage
Save the fetched HTML to Botify temporary storage and return the temporary URL instead of the HTML. Use this to save output tokens. The returned URL can be passed to `tmp_storage_read`, `tmp_storage_grep`, `tmp_storage_jq`, and other HTML-processing tools.
queriesrequired
List of search queries to run against the fetched HTML. Each query is processed independently and shared by all items in a batch.
Credits
Fixed cost per URL requested. The search itself runs inside Botify. What you pay beyond the call is whatever fetching the page costs: nothing if it is in your SiteCrawler crawl, and a live page fetch otherwise, since this tool always allows the fallback.
These usage SKUs can be charged on a call, including SKUs from
tools this one may call.
SKU
Credits
Description
Used by
Tool call
1 per request
Charged once per successful item, on top of any usage below.
This tool
Live page fetch
5 per 10 page
Fetches a page from the live web as an ordinary visitor would.
item is what you send, config how the tool behaves,
and the response is what you get back.
Item
object
Properties
urlstringrequired
The URL to fetch the HTML from. Temporary uploaded URLs on https://app.botify.com/:organization/:project/o/storage/tmp are allowed.
Example
{
"url": "string"
}
Configuration
object
Properties
save_to_tmp_storageboolean
Save the fetched HTML to Botify temporary storage and return the temporary URL instead of the HTML. Use this to save output tokens. The returned URL can be passed to `tmp_storage_read`, `tmp_storage_grep`, `tmp_storage_jq`, and other HTML-processing tools.
Default: false
queriesarrayrequired
List of search queries to run against the fetched HTML. Each query is processed independently and shared by all items in a batch.