بنقرة واحدة
browser-help
Overview of browser session commands (named concurrent playwright-mcp sessions)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Overview of browser session commands (named concurrent playwright-mcp sessions)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | browser-help |
| description | Overview of browser session commands (named concurrent playwright-mcp sessions) |
Generated from a Claude Code command. Where the procedure references these Claude-only surfaces, adapt as follows:
~/.codex/config.toml, or fall back to the referenced repo scripts and CLI entry points.Named concurrent browser sessions over upstream @playwright/mcp, using a
static "lease-desk" pool (issue #421). Upstream gives one browser per connection;
this wrapper multiplexes any number of named, independently-authenticated
sessions across a small fixed pool of pre-registered instances - the one feature
upstream lacks (microsoft/playwright-mcp#1530), recovered without a fork.
| Command | Description |
|---|---|
/browser-session create <name> [url] | Lease a free desk for a new named session |
/browser-session resume <name> [url] | Re-open a session (restores its saved login) |
/browser-session save <name> | Persist the session's cookies/localStorage to a state file |
/browser-session close <name> [--discard] | Free the desk (keep state, or --discard to forget) |
/browser-session list | Show sessions, status, and desk occupancy |
/browser-session cleanup [--idle-seconds N] | Release desks of idle sessions (keeps state) |
/browser-session pool | Show pool configuration and occupancy |
/browser-help | This help page |
A fixed pool of desks (playwright-desk-1..N, pre-registered at Claude Code startup)
is leased by user-named sessions. A session's identity lives in a portable
storage-state file (.claude/playwright-state/<name>.json), so sessions outlive desks:
close frees a desk but keeps the file, resume re-leases any free desk and restores the
file into it. N desks multiplex unlimited named sessions.
/cpp:init -> Full tier -> browser pool step (writes
.claude/playwright-pool.json from templates/playwright-pool.example.json and runs
claude mcp add playwright-desk-N ... -- npx -y @playwright/mcp@<ver> --isolated ...).playwright-desk-* MCP servers load at startup
(mid-session registration does not take effect - see the spike doc)./browser-session pool and confirm mcp__playwright-desk-1__* tools exist..claude/playwright-pool.json{
"version": 1,
"desks": ["playwright-desk-1", "playwright-desk-2", "playwright-desk-3"],
"idle_timeout_seconds": 1800,
"state_dir": ".claude/playwright-state"
}
| Field | Description |
|---|---|
desks | MCP server names of the pre-registered pool (one browser each). Add more to widen concurrency (then register + restart). |
idle_timeout_seconds | cleanup releases sessions idle beyond this (replaces the old server's SESSION_TIMEOUT). |
state_dir | Where per-session storage-state files live (gitignored). |
The live ledger .claude/playwright-sessions.json is managed by the wrapper - do not edit.
npx on PATH (upstream @playwright/mcp runs via npx; no custom image).Single-session automation (/qa-test, a one-off screenshot) needs only plain upstream
playwright-mcp. Reach for the desk pool only when you need several named, concurrent
sessions - e.g. driving two logged-in accounts side by side.
See docs/skills/browser-session-wrapper.md for the full guide and
docs/reviews/2026-07-03-playwright-spike-419.md for the design rationale.
Flow: Auto - Full Issue Lifecycle in One Shot - Complete end-to-end workflow: start worktree → analyze issue → ELI5 plan + necessity gate → implement ...
Run quality checks (lint + test + typecheck + security) without committing
Flow: Finish - Quality Gates, Commit, Push, and Create PR - Run quality checks, commit changes, push the branch, and create a pull request.
Flow Commands - Streamlined worktree-based development workflow. No locks, no Redis - just git.
Flow: Merge PR and Clean Up - Merge the current branch's PR, then clean up the worktree and branch.
Diagnose flow workflow setup and environment