midscene-automation_skill

This skill enables hands-free browser automation using natural language to navigate, extract data, and interact with web pages via Midscene CLI.
  • TypeScript

3

GitHub Stars

4

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 web-infra-dev/midscene-skills --skill midscene-automation

  • EXAMPLES.md9.7 KB
  • REFERENCE.md12.2 KB
  • setup.json1.2 KB
  • SKILL.md10.0 KB

Overview

This skill automates web browser interactions via the Midscene CLI using plain natural language. It controls a persistent Chrome instance to navigate sites, click and type, extract structured data, and capture screenshots. The browser session preserves cookies and state between commands for multi-step workflows.

How this skill works

You send simple commands to the CLI (navigate, act, query, assert, screenshot, close) and Midscene interprets them using AI-powered visual and semantic understanding of the page. The tool locates elements without CSS selectors by reasoning about labels, visuals, and context. Commands return JSON with success status, messages, extracted data, and screenshot paths for verification.

When to use it

  • Open or navigate to a specific website or page
  • Automate form filling, button clicks, scrolling, or other UI interactions
  • Extract structured data (product lists, headlines, prices) from a page
  • Take full-page screenshots for verification or documentation
  • Run validation checks/assertions during testing or monitoring

Best practices

  • Always run the navigate command before performing interactions
  • Be specific in natural language (e.g., "the blue Submit button in the login form")
  • After each command, review the returned screenshot to confirm state and troubleshoot failures
  • Check setup.json and complete setup steps before running any browser commands
  • Close the browser session with the close command when finished to free resources

Example use cases

  • Multi-step login: navigate to login page, type credentials, click submit, assert login success, screenshot
  • Web scraping: navigate to a products page and query "extract product names and prices in JSON"
  • Form automation: navigate to signup, act to fill fields and click Register, then assert confirmation text
  • Visual QA: navigate to a page, take screenshots of different states, and compare outputs
  • Search workflow: navigate to search engine, act to enter query and press Enter, then query top result titles

FAQ

Open setup.json in the skill directory and ensure setupComplete is true. If false, follow the listed installation and configuration steps (install dependencies, build, configure .env, verify Chrome).

How do I debug an action that failed?

Inspect the JSON error message and open the corresponding screenshot saved under agent/browser_screenshots/. Make descriptions more specific and retry; use assert to validate expected elements.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
midscene-automation skill by web-infra-dev/midscene-skills | VeilStrat