midscene-computer-browser_skill

This skill automates web browsing and data extraction by controlling a headless browser via screenshots, enabling reliable UI testing and page capture.
  • Python

2.5k

GitHub Stars

2

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill midscene-computer-browser

  • _meta.json670 B
  • SKILL.md8.6 KB

Overview

This skill provides vision-driven browser automation using Midscene and Puppeteer. It operates entirely from screenshots, so no DOM access or accessibility labels are required, and it can interact with any visible element regardless of technology stack. Each target URL opens in a new browser tab and the headless Chrome instance persists across commands for multi-step workflows.

How this skill works

The skill launches a Puppeteer-backed headless Chrome via the Midscene CLI and maps each CLI call to a screenshot-analyze-act loop. You connect to a URL, take a screenshot to observe the page state, then issue high-level act commands that describe desired UI effects (click, type, select, scroll). All midscene commands must run synchronously and one at a time so the agent can read screenshots before choosing the next action.

When to use it

  • Browse, navigate, or open web pages programmatically
  • Scrape or extract data from pages when DOM access is unavailable
  • Fill forms, click buttons, and interact with visual UI elements
  • Validate or test frontend UI behavior and visual flows
  • Take screenshots or record step-by-step page state for reports

Best practices

  • Always run connect --url first to open the target tab before other commands
  • Take a screenshot after navigation or actions that change the page to confirm readiness
  • Describe UI targets in natural, specific visual terms (e.g., 'blue Submit button in contact form')
  • Run only one midscene command at a time and allow enough time for completion
  • Batch related UI steps into a single act command to reduce round-trips
  • Close the browser when finished to free resources and summarize generated files

Example use cases

  • Log into a web app by filling email/password and clicking Login, then capture a post-login screenshot
  • Scrape product listings by scrolling a page and extracting visible text and images
  • Automate a multi-step checkout flow by selecting options, filling forms, and confirming orders
  • Run visual regression checks by capturing screenshots before and after UI changes
  • Collect screenshots and logs for manual review or QA reporting

FAQ

No. The skill works from screenshots and natural language instructions, so DOM selectors are not required.

Can I run multiple commands at once?

No. Always run one Midscene command at a time and wait for it to finish to preserve the screenshot-analyze-act loop.

What environment variables are required?

You must configure model variables such as MIDSCENE_MODEL_API_KEY, MIDSCENE_MODEL_NAME, MIDSCENE_MODEL_BASE_URL, and MIDSCENE_MODEL_FAMILY before using the skill.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational