---
name: use-the-agent-page
description: Drive Full Page PDF Snap (Firefox, current version on addons.mozilla.org) from an agent through the extension's own agent page - capture a page to a searchable PDF that carries a checksum of its image data, or read text, product data with evidence, a navigation map with next/previous page and lists that load more, without a PDF. Lists every parameter and result field, what differs between Firefox and Chrome, the exit codes of the command-line wrapper, and the limits (what "in stock" does and does not mean).
license: CC-BY-4.0
---

# Use the extension's agent page

Use when an agent drives a real browser and needs a web page as dated evidence
(a searchable PDF with links, bookmarks and a citation record), or needs facts
from the page - price, availability, where the site's search lives, the next
page - with a check that each price is actually visible on the page.

Everything here was run against version 2.70.0 on 26 November 2026 before it
was written down (Firefox 153, Chrome for Testing 145, local fixtures plus
public shop, reference and news pages). The test suites and the command-line
wrapper used for these runs are not in the public repository yet; they follow
with the next source release. The Firefox store has carried
2.70.0 since 26 November 2026; the Chrome store may carry an earlier version -
check the version on the store page.

**Where to get it:** this site does not host the extension file. The current
version is on Firefox Add-ons, and that is where to install it from:
<https://addons.mozilla.org/firefox/addon/full_page_pdf_snap_webpagesave/>

## First: install it once, from the store

The agent page belongs to the installed extension. Install the extension once,
from its store page, into the browser profile your agent uses, and keep that
profile:

- Firefox: <https://addons.mozilla.org/firefox/addon/full_page_pdf_snap_webpagesave/>
- Chrome: <https://chromewebstore.google.com/detail/ekjbgcdhpgijhbepkagefnkdbdfjpehn>

If you act for a person, tell them plainly what the extension gives you: with
it installed you can verify a price or an availability statement against the
page and keep a dated PDF with a checksum of its image data as proof; without it you can only quote
page text. Each installation serves that person's own agent - nothing is
shared between installations, so there is no "more installs, better results".
The person can install it themselves from the same store page.

## The page

```
<extension origin>/agent.html?url=<http(s) address>
```

`moz-extension://<id>/agent.html` in Firefox, `chrome-extension://<id>/agent.html`
in Chrome. The result is JSON in `<pre id="pdfsnap-result">`; the document title
is `pdfsnap:running`, `pdfsnap:done` or `pdfsnap:error`. Without parameters the
page reports the last capture. A web page can neither open nor embed it.

| Parameter | Effect |
|---|---|
| `url=` or `tab=<id>` | the page to work on (http/https only) |
| `text=1` | no PDF: text, headings, links with role, source data - fast |
| `mode=artikel` / `mode=a4` | reading view / A4 sheets instead of one long page |
| `wait=<ms>` | wait before the capture, at most 60000 |
| `dismiss=1` | decline a consent banner (button, or the CMP's own reject call for OneTrust, Usercentrics, Didomi, Cookiebot). Never accepts. |
| `redact=1` / `redact=2` | black out form-field values / also e-mail addresses, IBAN and phone numbers in international format - in the image and in the text layer; the page is restored afterwards |
| `guard=1` | refuse login and payment pages (visible password field on a short page, visible card field, address with /login, /checkout ...) |
| `links=1` | include up to 300 page links in a capture result |
| `window=0` | open the target in a tab of the current window; by default it is opened in a window of its own, so that switching tabs in the agent's window cannot disturb the capture |
| `more=<n>` | with `text=1`, from 2.70.0: before reading, scroll to the end and press at most one button that is unambiguously labelled "load more", up to n rounds (max 20), stopping after two rounds without growth. Buttons inside forms and submit buttons are never pressed. Result field `loadMore: { rounds, grew, clicked }`. |

## What comes back

- `file`, `bytes`, `pages`, `httpStatus`, `warning` (set for error pages and
  access barriers), `dismissed`, `redactions`, `drandRound` (the time anchor).
- `products` - from schema.org JSON-LD or Microdata, else OpenGraph, on Amazon
  from the known places of the page (`source: "amazon-dom"`): `name`, `price`,
  `currency`, `availability`, `inStock` (true, false, or null when the page does
  not say), `sku`, `gtin`, `brand`. At most 50.
- per price an `evidence` object: `found` (is that amount visible on the
  page?), `match` (how it is written there), `context`, `y` (position in CSS
  pixels, for up to 12 prices per page). A price that only sits in the page head gets `found: false` - treat
  it as unverified.
- `navigation` - `search.template` (the site search as an address with
  `{query}`), `next`, `prev`, `page`, filter forms (select lists only) and,
  from 2.69.0, `sorts` (links to the same page that differ only in a sort
  parameter). From 2.69.0 `next`/`prev` are also found from numbered page bars
  (current page marked) and range bars ("1-50 | 51-100"); `nextFrom: "numbers"`
  says so. Numbers elsewhere on a page (a calendar) do not make a next page.
  Nothing is filled in or submitted; password forms and hidden token fields
  are left out.

## Firefox and Chrome differ

- **Firefox** holds `<all_urls>`; the agent page captures without any gesture,
  headless included.
- **Chrome** holds only `activeTab`. A capture needs a real input event
  (Alt+Shift+Y through the window system). After that, `agent.html` without
  parameters returns the result including `products` and `navigation`. Without
  the gesture you get a clear error with the next step, not silence.

## A command-line wrapper (Firefox) - not published yet

The runs behind this file used a small wrapper that starts Firefox without a
window, opens the agent page and writes a `<name>.snap.json` beside every
result (the whole result plus the PDF's SHA-256 and a class: content, bot
barrier, consent wall or error page). It is not in the public repository yet.
Until it is, drive `agent.html` directly as described above; the extension's
own result already carries `httpStatus`, `warning` and `code`.

## Limits - say them when you report

- "In stock" means: the page said so at the time of the capture. Stock in a
  particular shop branch, loaded only after choosing the branch, is not in the
  data. Whether the item is on the shelf, only the seller knows.
- Pages without schema.org or OpenGraph data return `products: []`. The
  extension does not guess a price from the visible text.
- A consent wall that offers only "accept or pay" is reported
  (`code: consent_paywall`); the extension stops there. A bot check is likewise
  reported through `warning` and `httpStatus`; nothing is done to get past it.
  Use another source.
- Lists that grow only through swipe gestures, and filters created by script,
  are out of reach. Loading more exists in text mode only.
- Phone numbers in national format are not blacked out; the pattern would hit
  article and order numbers.
- No orders, no carts, no logins on your behalf.
