Capture high-quality VS Code screenshots with Playwright MCP.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "vscode-playwright" skill from askskill: 1. Download https://raw.githubusercontent.com/microsoft/hve-core/main/.github/skills/experimental/vscode-playwright/SKILL.md 2. Save it as ~/.claude/skills/vscode-playwright/SKILL.md 3. Reload skills and tell me it's ready
Use the VS Code Playwright Screenshot Skill to capture a clean VS Code editor screenshot for a presentation, closing extra panels and notifications first.
A clean VS Code screenshot suitable for slides.
Generate a VS Code screenshot workflow for documentation, including opening files, cleaning the UI, and validating screenshot quality.
A screenshot workflow ready for technical documentation.
Help prepare a VS Code screenshot with a Copilot Chat example, keeping the UI clear and tutorial-ready.
A tutorial-friendly screenshot featuring Copilot Chat.
Instructors, product teams, or developers need clean, stable VS Code visuals for slides. This skill helps launch VS Code Web and capture presentation-ready images.
Writers or developers can use it to capture code views, editor UI, and Copilot Chat examples. It focuses on UI cleanup and screenshot validation for docs.
When multiple consistent screenshots are needed, it uses preset settings, a fixed viewport, and a repeatable server flow to reduce UI variation.
This document describes a skill for capturing high-quality VS Code screenshots for slide decks, technical docs, and Copilot Chat examples. It covers prerequisites, the serve-web architecture, and a full workflow from detecting the CLI and starting the service to cleaning the UI, validating screenshots, and shutting everything down, with emphasis on preset settings and running in the same terminal session for consistency.
Captures VS Code editor views, code walkthroughs, and Copilot Chat examples using Playwright MCP tools with serve-web.
This skill provides a complete workflow for capturing high-quality VS Code screenshots suitable for embedding in slide decks, documentation, and other visual media. It handles server lifecycle management, viewport configuration, UI cleanup, and screenshot validation.
code or code-insiders)mcp_microsoft_pla_browser_*)curl for server readiness checksThe serve-web CLI is a Rust-based proxy ("server of servers") that downloads the VS Code Server release and proxies connections to the inner Node.js server. The outer CLI accepts a limited set of flags; --server-data-dir is the key flag that controls where all server data (settings, extensions, state) is stored.
Check the VSCODE_QUALITY environment variable first; if it contains insider, use code-insiders. Otherwise, test availability with command -v code-insiders and fall back to code. Store the result for reuse:
if [[ "${VSCODE_QUALITY:-}" == *insider* ]] || command -v code-insiders &>/dev/null; then
VSCODE_CLI="code-insiders"
else
VSCODE_CLI="code"
fi
Create a temporary server data directory, pre-seed settings (including the color theme) to prevent state restoration, and launch serve-web. The --server-data-dir flag must receive a literal path — shell variables from other terminal sessions are not available in background terminals:
VSCODE_SERVE_DIR=$(mktemp -d)
mkdir -p "$VSCODE_SERVE_DIR/data/User"
cat > "$VSCODE_SERVE_DIR/data/User/settings.json" <<'EOF'
{
"window.restoreWindows": "none",
"workbench.editor.restoreEditors": false,
"workbench.startupEditor": "none",
"workbench.editor.restoreViewState": false,
"workbench.editor.sharedViewState": false,
"files.hotExit": "off",
"telemetry.telemetryLevel": "off",
"workbench.colorTheme": "Default Dark Modern",
"workbench.activityBar.location": "hidden"
}
EOF
$VSCODE_CLI serve-web --port 8765 --without-connection-token \
--accept-server-license-terms --server-data-dir "$VSCODE_SERVE_DIR"
The serve-web command and mktemp must execute in the same terminal session so the $VSCODE_SERVE_DIR variable resolves. If using a background terminal (isBackground: true), inline the entire block — do not reference variables set in a different terminal.
Verify the server is ready before proceeding: curl -s -o /dev/null -w "%{http_code}" http://localhost:8765/ must return 200.
If the server log contains Ignoring option 'server-data-dir': Value must not be empty, the variable was empty — the server is using the default data directory instead of the ephemeral one. Kill the process and re-launch with the literal path.
mcp_microsoft_pla_browser_navigate to http://localhost:8765/?folder=/path/to/workspace.mcp_microsoft_pla_browser_wait_for with time: 5 to allow the editor UI to fully render.Resize the viewport to match the target placement ratio: mcp_microsoft_pla_browser_resize to a resolution whose aspect ratio matches the PPTX placeholder where the screenshot will be inserted.
Calculate dimensions using width_px = 1200 and height_px = int(1200 / (target_width_inches / target_height_inches)). For example, a 5.5" x 4.2" placeholder produces a 1200 x 916 viewport.
…
It captures VS Code editor views, code walkthroughs, and Copilot Chat examples using Playwright MCP and serve-web. It is aimed at slides, documentation, and other visual media.
You need the VS Code or VS Code Insiders CLI, available Playwright MCP tools, and `curl` for readiness checks. The docs also require `serve-web` to start VS Code Web.
The docs mention server lifecycle management, viewport configuration, UI cleanup, and screenshot validation. They also recommend pre-seeding settings and starting `serve-web` in the same terminal session.
Provides the foundational rules and workflow for Design Thinking coaching.
Helps you write cleaner, safer, more maintainable Python code.
Turns Design Thinking outputs into RPI-ready handoff context.
Compress replies to terse, accurate output with selectable intensity levels.
Use a Python CLI to automate reading and writing Mural content.
Review code changes across perspectives and produce structured findings.
Let AI control VS Code for coding, debugging, screenshots, and test automation.
Automate real browser tasks for web interaction, scraping, screenshots, and test generation.
Automate browser testing and debug web issues directly through MCP.
Drive Chromium with Playwright using compact, reference-addressable page snapshots.
Use MCP tools to inspect web pages, capture screenshots, and list screens.
Capture screenshots and screen recordings via Chrome for Claude Code workflows.