oassis — web scraping, crawling and browser control for AI agents

v1.0.2
dev.oassis/scraper-crawler Checked 3 days ago Published 1 month ago

Web Tools and Web Tasks for AI agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

web_scrape

Processes a page and returns every output you ask for at once: markdown, html, links, screenshot, PDF, accessibility tree, elements by selector, AI-structured data, and `controls` (what can be clicked). One call, and a partial failure does not void the rest. From 1 credit ($0.002) per output. A url pointing at a PDF, Word, Excel or CSV file is converted to markdown instead, with no browser, for $0.002. Reference for the oassis API: https://oassis.dev/openapi.json

ParameterTypeDescription
binaryAsstringHow a screenshot or a PDF comes back. `base64` is the only value today.
blockobjectWhat not to load, which makes a render faster and cheaper. `resourceTypes` takes image, font, stylesheet, media… and `urlPatterns` are regular expressions, not globs: `\.svg$`, not `*.svg`.
controlsobjectOptions for the `controls` format: `visibleOnly`, and `limit` (1 to 1000) to cut the map.
formatsarrayOutputs you want in the same response. `controls` is the map of what can be clicked; `elements` needs `selectors`; `json` needs `json.prompt` or `json.schema`.
htmlstringRaw HTML instead of `url`, for a page you already have. Nothing leaves for the network.
jsonobjectFor the `json` format: a `prompt` describing what to pull out, a JSON `schema` to fill, or both.
linksobjectOptions for the `links` format: `visibleOnly`, `excludeExternal` to keep only internal links.
maxAgeintegerAccept an answer up to this many milliseconds old. A cache hit costs $0.0002 instead of the format price. Leave it out to force a fresh render.
pdfobjectOptions for the `pdf` format: `format` (a4, letter, legal…), `landscape`, `printBackground`, `scale` 0.1 to 2.
requestobjectHow to make the request: `headers`, `cookies`, `userAgent`, and `auth` for basic authentication.
screenshotobjectOptions for the `screenshot` format: `fullPage` for the whole page, `type` (png, jpeg, webp), `quality` 1-100 (not with png), `omitBackground`, `selector` to capture one element, and its own `viewport…
selectorsarrayCSS selectors for the `elements` format.
urlstringPage to process.
viewportobjectThe window to render in: `width`, `height`, `deviceScaleFactor`.
waitobjectWhen to consider the page loaded: `until` (load, domcontentloaded, networkidle0, networkidle2), `selector` to wait for, `timeout` in ms.

web_session_open

Opens a browser session and returns the map of controls. Opening costs 2.5 credits plus the requested outputs; the first minute is included. Further started minutes cost 2 credits with an account key. Use web_act to interact and web_session_close when done. API key and credits required. Reference: https://oassis.dev/openapi.json

ParameterTypeDescription
url *stringPage to process.
binaryAsstringHow a screenshot or a PDF comes back. `base64` is the only value today.
blockobjectWhat not to load, which makes a render faster and cheaper. `resourceTypes` takes image, font, stylesheet, media… and `urlPatterns` are regular expressions, not globs: `\.svg$`, not `*.svg`.
controlsobjectOptions for the `controls` format: `visibleOnly`, and `limit` (1 to 1000) to cut the map.
formatsarrayOutputs you want in the same response. `controls` is the map of what can be clicked; `elements` needs `selectors`; `json` needs `json.prompt` or `json.schema`.
jsonobjectFor the `json` format: a `prompt` describing what to pull out, a JSON `schema` to fill, or both.
linksobjectOptions for the `links` format: `visibleOnly`, `excludeExternal` to keep only internal links.
maxAgeintegerAccept an answer up to this many milliseconds old. A cache hit costs $0.0002 instead of the format price. Leave it out to force a fresh render.
pdfobjectOptions for the `pdf` format: `format` (a4, letter, legal…), `landscape`, `printBackground`, `scale` 0.1 to 2.
requestobjectHow to make the request: `headers`, `cookies`, `userAgent`, and `auth` for basic authentication.
screenshotobjectOptions for the `screenshot` format: `fullPage` for the whole page, `type` (png, jpeg, webp), `quality` 1-100 (not with png), `omitBackground`, `selector` to capture one element, and its own `viewport…
selectorsarrayCSS selectors for the `elements` format.
viewportobjectThe window to render in: `width`, `height`, `deviceScaleFactor`.
waitobjectWhen to consider the page loaded: `until` (load, domcontentloaded, networkidle0, networkidle2), `selector` to wait for, `timeout` in ms.

web_act

Runs actions against an open session and returns the resulting state. Actions: {navigate}, {click:{ref}}, {type:{ref,text,clear}}, {select:{ref,value}}, {press}, {scroll}, {wait}, {back}. The `ref` is the one `controls` gave you. It stops at the first failure and tells you where. $0.0005 (0.25 credit) per action, plus requested outputs and any outstanding browser time. API key and credits required. Reference for the oassis API: https://oassis.dev/openapi.json

ParameterTypeDescription
actions *arrayWhat to do, in order: click, type, select, scroll, hover, press, navigate, wait. One to twenty-five per call.
sessionId *stringThe session to act on, from `web_session_open`.
binaryAsstringHow a screenshot or a PDF comes back. `base64` is the only value today.
blockobjectWhat not to load, which makes a render faster and cheaper. `resourceTypes` takes image, font, stylesheet, media… and `urlPatterns` are regular expressions, not globs: `\.svg$`, not `*.svg`.
controlsobjectOptions for the `controls` format: `visibleOnly`, and `limit` (1 to 1000) to cut the map.
formatsarrayOutputs you want in the same response. `controls` is the map of what can be clicked; `elements` needs `selectors`; `json` needs `json.prompt` or `json.schema`.
jsonobjectFor the `json` format: a `prompt` describing what to pull out, a JSON `schema` to fill, or both.
linksobjectOptions for the `links` format: `visibleOnly`, `excludeExternal` to keep only internal links.
maxAgeintegerAccept an answer up to this many milliseconds old. A cache hit costs $0.0002 instead of the format price. Leave it out to force a fresh render.
pdfobjectOptions for the `pdf` format: `format` (a4, letter, legal…), `landscape`, `printBackground`, `scale` 0.1 to 2.
requestobjectHow to make the request: `headers`, `cookies`, `userAgent`, and `auth` for basic authentication.
screenshotobjectOptions for the `screenshot` format: `fullPage` for the whole page, `type` (png, jpeg, webp), `quality` 1-100 (not with png), `omitBackground`, `selector` to capture one element, and its own `viewport…
selectorsarrayCSS selectors for the `elements` format.
urlstringPage to process.
viewportobjectThe window to render in: `width`, `height`, `deviceScaleFactor`.
waitobjectWhen to consider the page loaded: `until` (load, domcontentloaded, networkidle0, networkidle2), `selector` to wait for, `timeout` in ms.

web_scrape_batch

A batch OF SCRAPES: reads a list of urls YOU give it (2 to 50, from any sites) and returns a jobId. It discovers nothing on its own — for that use web_crawl. API key and credits required. Poll it with web_batch_status.

ParameterTypeDescription
urls *arrayThe pages of this batch. Two to fifty, no duplicates: a batch charges per url.
binaryAsstringHow a screenshot or a PDF comes back. `base64` is the only value today.
blockobjectWhat not to load, which makes a render faster and cheaper. `resourceTypes` takes image, font, stylesheet, media… and `urlPatterns` are regular expressions, not globs: `\.svg$`, not `*.svg`.
controlsobjectOptions for the `controls` format: `visibleOnly`, and `limit` (1 to 1000) to cut the map.
formatsarrayOutputs you want in the same response. `controls` is the map of what can be clicked; `elements` needs `selectors`; `json` needs `json.prompt` or `json.schema`. A screenshot or a PDF is not available h…
jsonobjectFor the `json` format: a `prompt` describing what to pull out, a JSON `schema` to fill, or both.
linksobjectOptions for the `links` format: `visibleOnly`, `excludeExternal` to keep only internal links.
maxAgeintegerAccept an answer up to this many milliseconds old. A cache hit costs $0.0002 instead of the format price. Leave it out to force a fresh render.
requestobjectHow to make the request: `headers`, `cookies`, `userAgent`, and `auth` for basic authentication.
selectorsarrayCSS selectors for the `elements` format.
viewportobjectThe window to render in: `width`, `height`, `deviceScaleFactor`.
waitobjectWhen to consider the page loaded: `until` (load, domcontentloaded, networkidle0, networkidle2), `selector` to wait for, `timeout` in ms.

web_batch_status

Checks a batch of scrapes: status, how many are done, and the results. Free for the owning account. Pass `cancel: true` to stop it.

ParameterTypeDescription
jobId *stringThe batch, from web_scrape_batch.
cancelbooleanStop pending pages and refund pages that never started. An in-flight read may finish and is billed; failed reads are refunded.
limitnumberResults to return (default 50).

web_map

Every url of a site, fast and cheap: its sitemap plus, optionally, the links on the page. Use it BEFORE crawling, to see what is there and decide what is worth reading. 1 credit ($0.002) with `includePage: false` (no browser at all), 1.5 credits ($0.003) with the page. Reference for the oassis API: https://oassis.dev/openapi.json

ParameterTypeDescription
url *stringPage to process.
excludePathsarrayDiscard urls whose path contains one of these. Up to twenty. It wins over `includePaths`.
includePagebooleanRender the page too, to catch urls the sitemap does not list. `false` uses no browser at all, so it costs less: $0.002 against $0.003.
includePathsarrayKeep only urls whose path contains one of these. Up to twenty.
includeSubdomainsbooleanTreat subdomains of the same site as part of it.
limitintegerUrls to return. Up to 5000.
searchstringKeep only urls containing this text.

web_crawl

Follows a site's links and reads every page. Returns a jobId; poll it with web_crawl_status. API key and credits required; `limit` controls the maximum pages charged. Use web_map first if you only need the urls. Reference for the oassis API: https://oassis.dev/openapi.json

ParameterTypeDescription
url *stringPage to process.
binaryAsstringHow a screenshot or a PDF comes back. `base64` is the only value today.
blockobjectWhat not to load, which makes a render faster and cheaper. `resourceTypes` takes image, font, stylesheet, media… and `urlPatterns` are regular expressions, not globs: `\.svg$`, not `*.svg`.
controlsobjectOptions for the `controls` format: `visibleOnly`, and `limit` (1 to 1000) to cut the map.
excludePathsarrayDiscard urls whose path contains one of these. Up to twenty. It wins over `includePaths`.
formatsarrayOutputs you want in the same response. `controls` is the map of what can be clicked; `elements` needs `selectors`; `json` needs `json.prompt` or `json.schema`. A screenshot or a PDF is not available h…
includePathsarrayKeep only urls whose path contains one of these. Up to twenty.
includeSubdomainsbooleanTreat subdomains of the same site as part of it.
jsonobjectFor the `json` format: a `prompt` describing what to pull out, a JSON `schema` to fill, or both.
limitintegerPages this crawl may read, up to 200. Charged up front; what it does not read comes back.
linksobjectOptions for the `links` format: `visibleOnly`, `excludeExternal` to keep only internal links.
maxAgeintegerAccept an answer up to this many milliseconds old. A cache hit costs $0.0002 instead of the format price. Leave it out to force a fresh render.
maxDepthintegerHow far from the starting page to follow links. 0 reads only the starting page.
requestobjectHow to make the request: `headers`, `cookies`, `userAgent`, and `auth` for basic authentication.
selectorsarrayCSS selectors for the `elements` format.
viewportobjectThe window to render in: `width`, `height`, `deviceScaleFactor`.
waitobjectWhen to consider the page loaded: `until` (load, domcontentloaded, networkidle0, networkidle2), `selector` to wait for, `timeout` in ms.

web_crawl_status

Checks a crawl: status, pages read, discovered and still queued, and the pages themselves. Free for the owning account. Pass `cancel: true` to stop it.

ParameterTypeDescription
jobId *stringThe crawl, from web_crawl.
cancelbooleanStop pending pages and refund pages that never started. An in-flight read may finish and is billed; failed reads are refunded.
limitnumberPages to return (default 50).

web_search_exa

Search the web with Exa's index: a query instead of a url, for when you do not know where to look. Returns title, url and a snippet per result. To read the pages, pass the urls to web_scrape_batch. The engine is named because the price is Exa's, passed through with no markup and read from its own payment challenge on every call — the quote is read at execution time and is not a guaranteed fixed price. API key and credits required over MCP.

ParameterTypeDescription
query *stringWhat to search for.
domainsarrayOnly these domains, subdomains included: `example.com` also matches `docs.example.com`.
excludeDomainsarrayNever these domains, subdomains included.
limitintegerResults to return. Up to 50.
sincestringOnly results published after this ISO date.
snippetsbooleanText alongside each result. On by default: a bare url is rarely enough.

web_feedback

Tell us an answer was good or bad. FREE. Use it when a result is wrong — empty markdown, a control map missing a button, data that does not match the page — with the url or the jobId so it can be reproduced. It is the only way we learn that we read a page badly: our logs cannot tell that apart from a page that is simply like that. Reference for the oassis API: https://oassis.dev/openapi.json

ParameterTypeDescription
verdict *stringDid the answer do the job or not.
commentstringWhat you expected and what you got.
referencestringThe jobId or sessionId it happened on, so it can be looked up.
routestringWhich tool or endpoint it is about, as you called it.
urlstringThe page that came out wrong: usually the fastest way to reproduce it.

web_task_start

Starts a research task: a question answered by reading public pages, with sources, progress and cost. Requires an API key and credits. The maximum budget is reserved, actual execution cost is charged, and unused credits are released. Returns a task id: check it with web_task_status.

ParameterTypeDescription
task *stringWhat to find out, in plain words. Be specific about what to compare.
limitsobjectBounds on cost, time and steps.
modestringOnly research is available: read public pages and answer.
urlsarrayPages to read first, up to 5. Public http or https urls only.

web_task_status

Returns a task's status, progress, sources, limitations, result and billing. Only your own tasks.

ParameterTypeDescription
id *stringThe task id, from web_task_start.
access_tokenstringTask-scoped access token returned by web_task_start; not an API key.

web_task_cancel

Stops a task using its owning API key, or its legacy access_token. No new operations start. Cancellation is free; unused account credit reservations are released. Cancelling a finished task changes nothing.

ParameterTypeDescription
id *stringThe task id, from web_task_start.
access_tokenstringTask-scoped access token returned by web_task_start; not an API key.

web_session_close

Closes the browser session and stops its time. HTTP equivalent: POST /web/v1/session/{id}/close. No additional close fee; outstanding browser time is settled when applicable. If you do not close it, it closes itself after a minute without use.

ParameterTypeDescription
sessionId *stringThe session to close, from web_session_open.