OpenParable
Skip to content
← Back to skills

Inspect Page

Research
inspect-page

Inspect Page is an Agent Skill for research published in the zotero/translators repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Inspect a live web page using headless Chrome. Gets screenshots, meta tags, accessibility tree, and runs CSS selectors or JS expressions against the rendered DOM.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/zotero/translators/blob/HEAD/.agent/skills/inspect-page/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/inspect-page, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

When to use

Use this instead of fetching pages with WebFetch or curl. This tool opens the page in a real browser, executes JavaScript, and gives you the rendered result.

Useful for:

  • Seeing what metadata tags a site embeds (to decide if EM-based approach works)
  • Understanding page structure via the accessibility tree
  • Testing CSS selectors against the live DOM
  • Evaluating JS expressions to extract data

Basic usage (screenshot + meta + accessibility tree)

node .bin/inspect-page.mjs "<url>"

With no flags, this outputs:

  1. Screenshot (saved as PNG - read it to see the page visually)
  2. Meta tags (all <meta>, JSON-LD, COinS)
  3. Accessibility tree (structured representation of the rendered page)

Query the DOM

Test CSS selectors:

node .bin/inspect-page.mjs "<url>" --selector "h1" --selector "article .author"

Returns tag, text content, href, and attributes for up to 20 matching elements.

Evaluate JS

Run arbitrary expressions against the rendered page:

node .bin/inspect-page.mjs "<url>" --eval "document.querySelector('h1').textContent"

Interactive mode

Open a headed browser you can interact with:

node .bin/inspect-page.mjs "<url>" --interact