Skip to content
Back to skills

Microsoft Webwright

ASecurity

Browser agent mã nguồn mở của Microsoft Research — agent viết Python/Playwright script thay vì click từng bước, script có thể reuse. SOTA 86.7% trên Online-Mind2Web.

  • 10 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
ai-agentspythongobashgitapi

Works with

  • claude code
  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 9, 2026

npx -y skills add yanacuti1121/Yana-AI --skill microsoft--webwright --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Microsoft Webwright?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Microsoft  Webwright
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yanacuti1121-microsoft-webwright/badge)](https://www.skillsdirectory.com/skills/yanacuti1121-microsoft-webwright)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: microsoft--webwright
description: "Browser agent mã nguồn mở của Microsoft Research — agent viết Python/Playwright script thay vì click từng bước, script có thể reuse. SOTA 86.7% trên Online-Mind2Web."
allowed-tools: Bash, Read, Write
user-invocable: true
---

Webwright là browser agent framework: thay vì predict discrete actions, agent viết Python/Playwright script tự do — script reusable, testable, maintainable như code thật.

## Install

```bash
pip install -e .
playwright install chromium
```

## Usage

```bash
python -m webwright.run.cli \
    -c base.yaml -c model_openai.yaml \
    -t "Book a flight from Hanoi to HCM City, cheapest option" \
    --start-url https://www.google.com/travel/flights \
    -o outputs/flight-booking
```

## Config

```yaml
# base.yaml
workspace_dir: ./workspace
max_steps: 50
screenshot_on_failure: true

# model_anthropic.yaml
model:
  provider: anthropic
  name: claude-sonnet-4-6
  api_key: ${ANTHROPIC_API_KEY}
```

## Core Pattern — Agent Loop

```
Task → Launch browser → Observe (screenshot + DOM)
     → Write Playwright script → Execute → Inspect failure?
     → Screenshot + re-observe → Refine script → Loop
     → Final artifact = reusable Python script + logs
```

## Slash Commands (Claude Code plugin)

```
/plugin install webwright@webwright

/webwright:run    -- single-shot task
/webwright:craft  -- tạo reusable CLI tool từ task description
```

## Điểm mạnh

- Script output là code thật — không phải click trace
- 86.7% Online-Mind2Web SOTA (2026)
- ~1.5k lines core — đọc hiểu dễ
- Support OpenAI, Anthropic, OpenRouter
- Trajectory + screenshots lưu disk để debug

## Khi nào dùng

- Automation web phức tạp (multi-step, conditional logic)
- Cần script có thể chạy lại, không phải one-off recording
- RPA-style workflow với LLM decision layer
- Web scraping có login, dynamic content

## Source

https://github.com/microsoft/Webwright · MIT

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.