Skip to content

screenshot verb: capture the page over CDP #5

Description

@yassiEmp

What

Canvas apps (Excalidraw, Google Sheets) cannot be verified from the DOM; HANDOFF.md names a screenshot verb as the next gap. docs/assets/screencast.mjs shot <port> <out.png> already does the capture with Page.captureScreenshot, as a standalone script.

Fix

Add agent-hands screenshot [path] that reuses the open connection (cdp.send('Page.captureScreenshot', ...)), writes a PNG, and prints its path and size. Default path: ./agent-hands-<timestamp>.png. --full captures beyond the viewport with a clip from Page.getLayoutMetrics.

Acceptance

  • Works on --cdp, --browser and --session targets.
  • --json returns { path, width, height }.
  • Listed in USAGE and in skill-data/core/SKILL.md under verification.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions