/decision-playwright:decision-playwrightfrom decision-playwright
Fast browser automation with Playwright where Microsoft-Decision-1.1 (or TypeSafe Jev) performs clicks, scrolling, dropdown selection and navigation, and the host coding agent types text. Use when a task needs a real browser to navigate a website, click through pages, fill forms or check a web UI.
Ships in decision-playwright. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Decision (Microsoft-Decision-1.1 or Jev) is a fast mechanical operator. It picks one
observed element at a time and clicks, selects, scrolls or goes back. It never types.
When a field needs text, it stops and returns NEEDS_TYPING. You (the host agent)
write the text with dpw type, then hand control back with dpw resume.
A background daemon keeps the Playwright browser session alive between commands.
Run the CLI that ships in this skill folder:
node <skill-dir>/scripts/dpw.mjs <command>
<skill-dir> is the folder that contains this file (the "Base directory for this skill").
The first command installs playwright-core into ~/.decision-playwright/runtime if it is
missing, and uses Chrome or Edge if one is installed. Run dpw setup once to see this happen.
Every command prints one JSON object.
| Command | Purpose |
|---|---|
run "<goal>" [--url URL] [--fill JSON] | Decision drives the page until it stops. --fill gives text for fields by label |
type <ref> "<text>" [<ref> "<text>" ...] [--submit] | You type into one or more fields |
resume [--fill JSON] | Decision takes over again with the same goal |
snapshot [--full] | URL, title, element refs and page text |
open <url> / press <key> / screenshot <file> | Manual helpers |
status / config / stop | Session state, provider check, close browser |
setup | Install the runtime and check that a browser starts |
Use --session <name> on every command to run separate browsers.
Start. If the goal already contains the text for fields (user names, emails, search words,
names, codes), pass it as --fill so Decision does not stop for each field:
dpw run "<full goal>" --url <start url> --fill '{"Username":"jane","Email":"[email protected]","Postal code":"12345"}'
Keys are field labels as a person would read them. A key matches a label that equals it,
starts with it or contains it ("Zip" matches "Zip/Postal Code"). Each key is used once per page.
Do not put passwords or other secrets in --fill unless the user gave them for this task.
Read status:
NEEDS_TYPING: a field needs text that --fill did not cover. If fields is present, it
lists every empty field of that form. Decide the text for all of them from the goal and type
them in one call, then resume in the same command:
dpw type e3 "Jane" e4 "Doe" e5 "12345" && dpw resume
Leave a field out if the goal does not need it. Repeat step 2.
NEEDS_VERIFICATION: Decision thinks the goal is done (read reason if present). Run dpw snapshot (or a
screenshot) and check the result yourself. Decision output is never proof.
BLOCKED or STEP_LIMIT: Decision cannot continue. Do not run the same resume again.
dpw snapshot (add --full for the complete page text).dpw type <ref> "<text>" for an empty field,
dpw open <url> for a link you can see in the text, or dpw press <key>.dpw resume so Decision does the rest of the clicks and selects.ERROR: read error. Fix configuration or use snapshot for fresh refs.
Run dpw stop when the task is finished. Join the last check and stop in one command:
dpw snapshot && dpw stop.
Forms: if Decision stops on a form that was changed but not sent, the daemon clicks the
form's submit button once and continues (auto: "submit_before_done" in history).
Every run/resume result has timing (decisionApiMs, decisionCalls, observeMs, actMs).
Long pages: Decision gets at most 80 elements (DPW_MAX_ELEMENTS). Elements that match
words or numbers in the goal come first, then the visible ones. snapshot shows
omittedElements when some were left out. Put exact names and numbers in the goal.
target.sensitive is true or the value is unknown, ask the user.resume into such a step without approval.e1, e2, ...) change after navigation. Use refs from the latest output.Set DECISION_PROVIDER and the matching variables before you run commands. Run
dpw config to check the resolved URL, model and header names (no secrets are printed).
typesafe: TYPESAFE_API_KEY, optional TYPESAFE_MODEL (default jev-latest)foundry: FOUNDRY_RESOURCE or FOUNDRY_ENDPOINT, FOUNDRY_API_KEY, DECISION_DEPLOYMENTendpoint: DECISION_ENDPOINT_URL, DECISION_API_KEY, DECISION_MODEL, optional DECISION_AUTH_HEADER, DECISION_AUTH_SCHEMEaigateway: AIGATEWAY_URL (gateway hostname), AIGATEWAY_API_KEY, DECISION_MODEL (alias, e.g. <provider>/<model>), optional AIGATEWAY_PATHapim: APIM_GATEWAY_URL, APIM_SUBSCRIPTION_KEY, DECISION_MODEL, optional APIM_KEY_HEADER, APIM_PATHBrowser: DPW_EXECUTABLE_PATH or DPW_CHANNEL (for example chrome), DPW_HEADED=1 to show the window,
DPW_RECORD_DIR=<folder> to record a WebM video (paths are in the dpw stop output).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub cheolmin/decision-playwright --plugin decision-playwright