/openbrowser:form-fillingfrom openbrowser
Automates web form filling including login, registration, checkout, and multi-step forms using OpenBrowser's browser automation via CLI or MCP tools.
Ships in openbrowser. 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.
None: SKILL.md is the whole skill.
Automate filling web forms including login, registration, checkout, and multi-step form wizards using Python code execution.
Form filling needs a browser because it types into fields and submits pages. OpenBrowser no-browser mode starts no Chrome, Blink, or V8 process, but it cannot run JavaScript, take screenshots, or use browser cookies, so it cannot replace the workflow below.
The CLI examples below run with openbrowser-ai -c. The MCP route runs the same browser functions inside execute_code; place a complete task sequence in one execute_code call and reuse its context_id for later calls. The CLI daemon starts automatically and persists variables across calls. Run openbrowser-ai warm once before a multi-call CLI workflow to start the daemon and browser before the workflow begins. Most browser functions are async, use await. list_downloads(), download_outcomes(), and download_failures() are synchronous.
openbrowser-ai -c needs no separate OpenAI, OpenBrowser, or MCP API key.
The CLI daemon persists cookies and login state in the Chrome user-data directory at ~/.config/openbrowser/profiles/daemon, so authenticated sessions can be reused across later runs. No storage_state.json file is written unless you configure one explicitly.
Best route. Fill and submit the whole form in one MCP execute_code call: call create_context once, pass its context_id to every call, and call close_context when the task ends. Use openbrowser-ai -c for a one-off CLI form run or when MCP is unavailable, and run openbrowser-ai warm once before repeated CLI calls. Both routes expose the same browser functions and need no separate API key. Use fill_by_label or fill_selector for standard inputs, click_text or click_selector for buttons and choices, and wait_for_selector when a step renders asynchronously. The helpers wait for form submits and page loads. Read get_browser_state_summary(include_screenshot=False) once only when labels and selectors are unknown, and pass cached=True for a repeat read on the same document. Use send_keys for keyboard-only controls. Use get_status after a failed or stalled call, and reset_browser only when no usable page target remains.
Before running, verify openbrowser-ai is installed:
openbrowser-ai --help
If not found, install:
# macOS/Linux
curl -fsSL https://raw.githubusercontent.com/billy-enrizky/openbrowser-ai/main/install.sh | sh
# Windows (PowerShell)
irm https://raw.githubusercontent.com/billy-enrizky/openbrowser-ai/main/install.ps1 | iex
openbrowser-ai -c - <<'EOF'
await navigate("https://example.com/login")
state = await browser.get_browser_state_summary(include_screenshot=False)
print(f"Page: {state.title} ({state.url})")
print(f"Interactive elements: {len(state.dom_state.selector_map)}")
EOF
openbrowser-ai -c - <<'EOF'
# List all interactive elements with their indices
state = await browser.get_browser_state_summary(include_screenshot=False)
for index, element in state.dom_state.selector_map.items():
tag = element.tag_name
text = element.get_all_children_text(max_depth=2)[:60]
placeholder = element.attributes.get("placeholder", "")
input_type = element.attributes.get("type", "")
name = element.attributes.get("name", "")
print(f"[{index}] <{tag}> type={input_type} name={name} placeholder=\"{placeholder}\" text=\"{text}\"")
EOF
Visible labels give a direct stable locator for standard fields:
openbrowser-ai -c - <<'EOF'
await fill_by_label("Email", "[email protected]")
await fill_by_label("Password", "secure-password")
EOF
Use fill_selector("#field-id", ...) when an id is known. find_element(role=..., name=..., element_id=..., tag=..., timeout=...) returns the index when a later indexed action needs it. The helper reads a screenshotless browser state and waits for the element when a timeout is set.
You can also use indices from Step 2:
openbrowser-ai -c - <<'EOF'
await input_text(index=5, text="[email protected]")
await input_text(index=7, text="secure-password")
EOF
For fields that need clearing first:
openbrowser-ai -c - <<'EOF'
await click(index=5)
await evaluate("document.activeElement.select()")
await input_text(index=5, text="new-value")
EOF
Standard HTML select elements:
openbrowser-ai -c - <<'EOF'
await select_dropdown(index=12, text="United States")
EOF
To see available options first:
openbrowser-ai -c - <<'EOF'
options = await dropdown_options(index=12)
print(options)
EOF
Custom dropdown components:
openbrowser-ai -c - <<'EOF'
await evaluate("""
(function(){
const select = document.querySelector("select#country");
select.value = "US";
select.dispatchEvent(new Event("change", { bubbles: true }));
})()
""")
EOF
openbrowser-ai -c - <<'EOF'
await click(index=15) # Click checkbox/radio
# Verify state
checked = await evaluate("""document.querySelector("input[name=agree]").checked""")
print(f"Checkbox checked: {checked}")
EOF
openbrowser-ai -c - <<'EOF'
await click(index=20) # Click submit button
await wait(2)
# Verify submission
state = await browser.get_browser_state_summary(include_screenshot=False)
print(f"After submit: {state.url}")
EOF
Or submit via JavaScript:
openbrowser-ai -c - <<'EOF'
await evaluate("document.querySelector(\"form\").submit()")
EOF
openbrowser-ai -c - <<'EOF'
# Check for success/error messages
result = await evaluate("""
(function(){
const success = document.querySelector(".success, .alert-success, [role=\"alert\"]");
const error = document.querySelector(".error, .alert-danger, .validation-error");
return {
success: success?.textContent?.trim(),
error: error?.textContent?.trim(),
url: window.location.href
};
})()
""")
print(result)
EOF
openbrowser-ai -c - <<'EOF'
for step in range(1, 5):
# Discover fields for current step
state = await browser.get_browser_state_summary(include_screenshot=False)
print(f"Step {step}: {len(state.dom_state.selector_map)} elements")
# Fill fields (indices vary per step)
# ... fill fields here ...
# Click Next/Continue
# Find the next button
for idx, el in state.dom_state.selector_map.items():
text = el.get_all_children_text(max_depth=1).lower()
if "next" in text or "continue" in text:
await click(index=idx)
await wait(2)
break
EOF
-c - <<'EOF'), so all Python syntax works without shell escaping issues.fill_by_label or fill_selector first for standard inputs. Read get_browser_state_summary(include_screenshot=False) once when labels and selectors are unknown, and use indexed actions only for controls without a usable selector.click_element(role=..., name=...) for a button with a stable accessible name. Use send_keys() to test keyboard-only form flows.evaluate() to bypass custom components that do not respond to standard click/type.-c calls while the daemon is running, so you can store field indices in one call and use them in the next.Run this step after the task, whether it succeeded or failed.
MCP route cleanup. Call close_context with the same context_id after the last execute_code call. When the result is close_failed with retryable: true, call close_context again. Keep the close result in the task record.
Do not stop a daemon you did not start. Check openbrowser-ai daemon status before the first browser call. If it already reports a running daemon, reuse it and leave it running at the end. If it reports daemon_not_running, this run starts one and must clean it up.
For a daemon started by this run:
openbrowser-ai daemon stop
daemon stop only acknowledges the request and returns. Poll openbrowser-ai daemon status until it reports daemon_not_running, up to about 30 seconds. If the daemon does not exit, run openbrowser-ai daemon force-stop, which waits and verifies listener, owner, and browser cleanup.
If the task can fail mid-workflow, run the workflow and cleanup in one shell block. The same shell detects daemon ownership before installing the EXIT trap:
status=$(openbrowser-ai daemon status 2>&1 || true)
case "$status" in
*daemon_not_running*) OPENBROWSER_DAEMON_OWNED=1 ;;
*) OPENBROWSER_DAEMON_OWNED=0 ;;
esac
cleanup() {
if [ "${OPENBROWSER_DAEMON_OWNED:-0}" != "1" ]; then
return 0
fi
openbrowser-ai daemon stop >/dev/null 2>&1 || true
i=0
while [ "$i" -lt 30 ]; do
status=$(openbrowser-ai daemon status 2>&1 || true)
case "$status" in
*daemon_not_running*) return 0 ;;
esac
sleep 1
i=$((i + 1))
done
openbrowser-ai daemon force-stop >/dev/null 2>&1 || true
}
trap cleanup EXIT
# Place every openbrowser-ai -c call for this run in this same shell block.
Persist results to disk before stopping the daemon. daemon reset clears the Python namespace. Call done() only to mark the task complete inside the agent loop. Persist results and stop the daemon for cleanup.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/accessibility-auditAudit web pages for accessibility issues, WCAG compliance, and screen reader compatibility.
Routes through keyless local MCP `create_context` and `execute_code` tools plus the `openbrowser-ai -c` CLI. No separate API key is required.
Trigger when the user asks to: check accessibility, run an a11y audit, test WCAG compliance,
check screen reader support, audit ARIA attributes, verify keyboard navigation,
find accessibility issues, or check for missing alt text or labels.
/deep-researchUse when the user asks for search, web search, source discovery, research, investigations, evidence gathering, comparisons, literature reviews, briefings, or cited reports.
Uses host reasoning with the keyless `openbrowser-ai web-search`, guarded `safe_scrape.py`, and `-c` CLI. The MCP `web_search` tool is an optional lead-generation helper; its snippets are not evidence. Browser capture uses the dedicated CLI daemon. No separate API key is required. The `-p` prompt route is an optional configured-provider route; this skill never uses it.
/e2e-testingTest web applications end-to-end by simulating user interactions and verifying expected outcomes.
Routes through keyless local MCP `create_context` and `execute_code` tools plus the `openbrowser-ai -c` CLI. No separate API key is required.
Trigger when the user asks to: test a web app, verify a user flow, run end-to-end tests,
QA a feature, check that a page works correctly, validate user journeys, or test a deployment.
/file-downloadDownload files from websites, save PDFs, and read downloaded content.
Routes through keyless local MCP `create_context` and `execute_code` tools plus the `openbrowser-ai -c` CLI. No separate API key is required.
Trigger when the user asks to: download a file, save a PDF, export a document,
fetch a file from a URL, grab a report, download and read a PDF, or save page content as a file.
/page-analysisAnalyze web page content, structure, and layout to understand what a page contains and how it is organized.
Routes through keyless local MCP `create_context` and `execute_code` tools plus the `openbrowser-ai -c` CLI. No separate API key is required.
Trigger when the user asks to: analyze a page, understand page structure, inspect a website,
summarize page content, examine page layout, review a web page, or describe what is on a page.
/setupInstall, configure, repair, or verify OpenBrowser for the first time.
Configures the keyless CLI and local MCP server. Provider keys apply only to optional Agent runs.
Trigger when the user asks to: install OpenBrowser, set up OpenBrowser,
configure the MCP server, install the CLI, set up browser profiles,
install the plugin skills, verify a browser, or repair a broken install.
npx claudepluginhub billy-enrizky/openbrowser-ai --plugin openbrowserOther plugins' skills for the same job