01
open
The page and the site index, returned together.
- Sources
- Sitemap, llms.txt, robots, links
- Timing
- Discovery runs alongside the fetch
- Cache
- Each site is indexed once
SITE MAP docs.example.com: 214 pages
/docs/: quickstart, concepts, limits
/docs/api/: auth, open, read, errors
---
URL: /docs/quickstart
# Quickstart
02
read
Many pages in one call, fetched in parallel.
- Batch
- Up to 20 URLs
- Length
- Long pages continue from an offset
- Errors
- Reported in place, the rest return
read([
".../docs/api/auth",
".../docs/api/errors",
".../docs/guides/caching"
])
03
find
The passages on a site that answer a question.
- Picks
- Pages whose path or title match
- Reads
- Up to six pages in parallel
- Returns
- The best passages, with their URLs
find("docs.example.com",
"webhook signature")
FOUND 4 passages (read 5 pages)
[1] .../docs/api/webhooks
Webhooks › Verifying signatures
Each request carries a signature...
04
map
Search a site's pages without reading any.
- Filter
- Path prefix or keyword
- Scale
- Counts per section on large sites
- Growth
- Expands as the agent browses
map("shop.example.com",
prefix="/help/")
SITE MAP shop.example.com: 39 pages
/help/: returns, shipping, sizing