/web:page-collectfrom web
Extracts structured resources from a webpage using the web CLI: icons (SVGs classified as icon or logo and optimized for AEM Edge Delivery Services), metadata and Open Graph tags, body text, forms, videos, and social links. Useful when migrating pages to Edge Delivery Services, auditing a site, or extracting page assets.
Ships in web. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Extract structured resources from any webpage with web page collect.
Node 22+ and playwright-cli >= 0.1.20 on PATH (playwright-cli --version).
Locate the web CLI once:
# <skill-dir> is the directory containing this SKILL.md
WEB=$(command -v web || echo "node <skill-dir>/../../cli/dist/web.mjs")
then run $WEB …; it prints exactly one JSON document on stdout,
so $WEB … > file.json is safe.
Fallback when published: npx -y @adobe/web-cli. Use an absolute <skill-dir>; don't cd into it.
Sessions. If WEB_SESSION or PLAYWRIGHT_CLI_SESSION is set, do not pass
--session: every web command uses that browser and leaves it open. Otherwise
either run one-shot ($WEB page tree "$URL" opens and closes its own browser) or
start a browser and reuse the generated name:
S=$($WEB browser open "$URL" | jq -r .session) then --session "$S".
Never invent a fixed session name.
Migrating pages to Edge Delivery Services, auditing a site, or extracting a page's icons, metadata, or other assets.
$WEB page collect <what> "$URL" [--output <dir>]
$WEB page collect all "$URL" --output ./collected
$WEB page collect metadata --session "$S"
<what> is one of:
| Collector | Purpose | Files under --output |
|---|---|---|
all | Run all collectors | <session>-collect/collection.json, screenshot.jpg, plus the collector files |
icons | SVGs, icon fonts, CSS icons → classified SVGs | <session>-collect/icons/ + icons.json |
metadata | Meta tags, OG, structured data | <session>-collect/metadata.json |
text | Body text, headings, word count | <session>-collect/text.json |
forms | Form structures, fields, actions | <session>-collect/forms.json |
videos | Video embeds, sources | <session>-collect/videos.json |
socials | Social media links | <session>-collect/socials.json |
Default --output is ./.web. Artifacts live in <session>-collect/ with stable names; the
paths are listed in the files field. An unknown <what> exits 2 (USAGE).
{ ...collectorFields, files, url, session, durationMs }all: { url, collectedAt, screenshot?, collectors: {...}, files, session, durationMs }collection.screenshot is the full path of the screenshot file (not a bare
screenshot.jpg). Per-collector fields, extraction sources and limitations:
references/collectors.md.
The icon collector extracts SVGs from inline <svg> elements, <img> tags with
.svg src or data:image/svg+xml URIs, CSS background-image SVG data URIs,
and SVG <use> sprite references (resolved to standalone SVGs).
| Class | Criteria | Output |
|---|---|---|
icon | ≤ 48px, inside button/link/nav | /icons/{name}.svg |
logo | Brand area, "logo" in class/alt/src | /icons/logo.svg |
image | > 48px, standalone | Excluded |
Icons are named from DOM context (aria-label, class, ID). When no meaningful
name can be derived they get icon-{n} with nameConfidence: "low": review and
rename those. Each SVG is cleaned: XML declarations, comments and metadata
stripped; viewBox ensured and hardcoded width/height removed; fill/stroke
replaced with currentColor (icons only, not logos); whitespace collapsed.
icons.json manifest:
{ "url": "https://example.com",
"icons": [ { "name": "search", "class": "icon", "source": "inline-svg",
"file": "icons/search.svg", "nameConfidence": "high", "context": "header button Search" } ] }
icons.json, rename nameConfidence: "low" icons, copy the SVGs
to the EDS project's /icons/ directory, reference them in content as
:iconname: (decorateIcons() in aem.js renders them).all: review the collection file for a full resource inventory.browser-probe, then --recipe <recipePath>.$WEB page overlays --session "$S" --dismiss first.playwright-cli -s <session> … drives the same browser.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub adobe/skills --plugin web11 skills in this plugin
/browser-probeDetects CDN bot protection (Akamai, Cloudflare, DataDome, AWS WAF) by probing a URL with escalating headless browser configurations through `web probe`, and writes a browser recipe that other web commands load with `--recipe`. Use when a page is blocked, empty, or shows a 403, "access denied", or captcha page in headless Chrome, or before automating a site known to block bots./cdp-connectSuperseded by the web CLI: attach to an already-running Chrome with `web browser attach <cdp-url>`, then drive it with `web browser eval|run|cdp|screenshot`. Use when the user asks to attach to, connect to, or control an existing Chrome running with --remote-debugging-port./cdp-ext-pilotLaunches a persistent, headless-by-default Chromium (playwright-cli's) with an unpacked extension loaded through `web ext`, opens the extension's side panel, popup, or options page, and interacts with it over `web browser eval/cdp`. Handles the Chrome 137+ restriction on loading unpacked extensions and the side panel user-gesture requirement. Use when testing, automating, or validating a Chrome extension's UI.Other plugins' skills for the same job