---
name: openai-playwright
description: "Use when the task requires capturing or automating a real browser from the terminal."
license: "MIT"
metadata:
  decimalai-skill-id: "511fda04-6843-499b-ab94-e200d251170a"
  decimalai-version-id: "a11892b8-ab4b-4d36-bfbf-107a79733fde"
  decimalai-version: "1"
  decimalai-body-sha256: "233163c2988110bb60549aa8c9827a745e0b919299e81bbb45d881102872f3d9"
  decimalai-name: "openai/playwright"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "testing"
  decimalai-source: "https://app.decimal.ai/s/openai-playwright@1/SKILL.md"
---
# Playwright

Use Playwright to capture the static site directly. Do not start a server for this example.

```sh
mkdir -p output/screenshots output/playwright/.tmp
export TMPDIR="$PWD/output/playwright/.tmp"
export TEMP="$TMPDIR"
export TMP="$TMPDIR"
npx --yes --package playwright@1.50.0 playwright install chromium
npx --yes --package playwright@1.50.0 playwright screenshot \
  --browser=chromium \
  --viewport-size=2048,1152 \
  "file://$PWD/output/site/index.html" \
  output/screenshots/draft-1.png
```

Change the final path to `output/screenshots/draft-2.png` for the second pass.
