Web Browser
Readable text or markdown, links, CSS-selector extraction and screenshots, public hosts only (no loopback, private or metadata addresses), robots.txt respected, no clicking or typing
Stable v0.2.1 Node.js 4 actions ToS risk low
About
A Graphrt plugin for read-only browsing of public web pages in a headless Chromium (Playwright). Workflows and agents can read a page as clean text or markdown, list its links, pull values out with CSS selectors, and take screenshots. The plugin can't click, type or log in, and it won't let a page reach your local network or a cloud metadata service.
What it can do
- fetch_page: returns the final URL, HTTP status, title, meta description, language, canonical URL, and the readable main text. Optionally it also returns markdown (headings, lists, links, tables, code) and the links in the content. Text and links are capped.
- get_links: lists the page's unique http(s) links with their text. You can filter them by scope (all, same_host, same_domain) and by a wildcard pattern such as /blog/.
- extract: takes fields, which maps names to a CSS selector (the text of the first match) or to {selector, attribute?, all?}. It returns one value per field, or a list for all: true. The selectors are CSS only and are run by a fixed in-page function.
- screenshot: saves a PNG of the viewport, or of the full page up to max_height px, in WEB_BROWSER_SCREENSHOT_DIR and returns the path.
- Waiting: every operation takes wait_until (load, domcontentloaded or networkidle), an optional wait_for_selector, and timeout_seconds (5–60).
- One browser per plugin process: - Chromium starts on the first call and closes after WEB_BROWSER_IDLE_MINUTES without use, or when Graphrt stops the plugin. - Each call gets a fresh browser context, so no cookies, storage or cache carry over. At most WEB_BROWSER_MAX_PAGES pages are open at once, further calls wait their turn.
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Fetch web page
web-browser.fetch_page - Get page links
web-browser.get_links - Extract from page
web-browser.extract - Screenshot web page
web-browser.screenshot
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
WEB_BROWSER_SCREENSHOT_DIR~/.graphrt/web-browser/screenshotsWhere screenshot writes PNGs (created with mode 700, files are 600, names are generated) -
WEB_BROWSER_RESPECT_ROBOTS10 ignores robots.txt -
WEB_BROWSER_IDLE_MINUTES5Close the background browser after this many idle minutes -
WEB_BROWSER_MAX_PAGES2Pages open at the same time (1–4), more calls wait -
WEB_BROWSER_MAX_DOWNLOAD_MB15Bytes one operation may download in total (1–100) -
WEB_BROWSER_USER_AGENT(Chrome UA + plugin token)Replaces the user agent (one line, max 300 characters)
How to use it
In Graphrt Desktop
- Open Plugins and search for Web Browser.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install web-browser workflow.yaml
- { id: page, type: web-browser.fetch_page, url: "https://example.com/blog/post", include_markdown: true, max_chars: 8000 }
- { id: links, type: web-browser.get_links, url: "https://example.com/blog/", scope: same_host, pattern: "*/blog/20*" }
- { id: prices, type: web-browser.extract, url: "https://example.com/shop", fields: { title: "h1", prices: { selector: ".price", all: true }, next: { selector: "a.next", attribute: href } } }
- { id: shot, type: web-browser.screenshot, url: "https://example.com", full_page: true, max_height: 6000 }