element-screenshot

Installation
SKILL.md

Element Screenshot

Capture a screenshot of a single DOM element via CDP. Clips output to the element's bounding rectangle.

For Chrome setup and tab ID resolution, see the chrome-cdp skill.

Script

cd .comate/skills/element-screenshot && npm install  # first time only

node screenshot-element.mjs \
  --tab <tabId> \
  --selector <css> \
  --output <path.png> \
  [--cdp localhost:9222] \
  [--no-isolate]
Related skills
Installs
1
GitHub Stars
5
First Seen
7 days ago