
playwright
✓ Official★ 27,670by openai · part of openai/openai-agents-python
Use when the task requires capturing or automating a real browser from the terminal.
🧩 One of 7 skills in the openai/openai-agents-python package — works on its own, and pairs well with its siblings.
This is the playbook your agent receives when the skill activates — you don't need to read it to use the skill, but it's here to audit before installing.
Playwright
Use Playwright to capture the static site directly. Do not start a server for this example.
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.pngChange the final path to output/screenshots/draft-2.png for the second pass.
Copy & paste — that's it
npx skills add https://github.com/openai/openai-agents-python --skill playwrightRun this in your project — your agent picks the skill up automatically.
No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under MIT— you can use, modify, and redistribute it under that license's terms.
View the full license file on GitHub →