Browser Use
ให้ AI ทำงานบนเว็บแทนคุณ เช่น กรอกฟอร์ม ค้นหา และดึงข้อมูล ใช้เบราว์เซอร์บนคลาวด์ของผู้ทำหรือรันในเครื่องก็ได้
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Runtime CSS probe — inspect layout, overflow, scroll chains in a real browser. For AI agents.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"cssprobe-cli": {
"command": "npx",
"args": [
"-y",
"cssprobe-cli"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add cssprobe-cli -- npx -y cssprobe-cliวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"cssprobe-cli": {
"command": "npx",
"args": [
"-y",
"cssprobe-cli"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"cssprobe-cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"cssprobe-cli"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub mack-peng ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.3.0) เข้า registry 2 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Browser Use, Chrome DevTools MCP, MCP Server Browser
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ให้ AI ทำงานบนเว็บแทนคุณ เช่น กรอกฟอร์ม ค้นหา และดึงข้อมูล ใช้เบราว์เซอร์บนคลาวด์ของผู้ทำหรือรันในเครื่องก็ได้
ให้ AI ใช้เครื่องมือนักพัฒนาของ Chrome ตรวจหน้าเว็บ ดูว่าโหลดช้าตรงไหน และหาข้อผิดพลาด ทำโดยทีม Chrome DevTools
MCP server for browser use access
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Runtime CSS probe — inspect layout, scroll, colors, backgrounds, fonts and more in a live browser. Built for both humans and AI agents.
Static + runtime CSS diagnosis for AI agents — pair with cssgraph (the CSS knowledge graph) for the full picture.
When an AI agent needs to debug CSS — why is this element overflowing, what's the actual rendered layout, is this container scrollable — it can't see the browser. It guesses from static code, missing runtime-only issues like overflow, scroll chains, and containing block hijacks.
cssprobe-cli gives the agent eyes. It opens a real browser, collects computed styles and metrics via injected JavaScript, analyzes them with a confidence model, and returns structured findings — all in one command. The agent asks a question about any selector and gets back the DOM tree, ASCII layout diagram, overflow warnings, and scroll diagnosis without leaving the terminal.
Copy and paste this prompt to your LLM agent (Claude Code, Cursor, Codex, etc.):
Install and configure cssprobe-cli by following the instructions here:
https://raw.githubusercontent.com/mack-peng/cssprobe-cli/main/docs/guide/installation.md
Or read the Installation Guide, but seriously, let an agent do it. Humans fat-finger configs.
Fetch the installation guide and follow it:
curl -s https://raw.githubusercontent.com/mack-peng/cssprobe-cli/main/docs/guide/installation.md
Or install directly:
npm install -g cssprobe-cli
cssprobe-cli skill-install
┌───────────────────────────────────────────────────────────┐
│ AI Agent │ │ │ │ "Is .sidebar overflowing?" │ │ calls: cssprobe-cli inspect .sidebar │ │ │ │ └─────────────────────────────┬─────────────────────────────┘ │ ▼ ┌───────────────────────────────────────────────────────────┐ │ cssprobe-cli daemon │ │ │ │ collector (IIFE) → analyzer (pure) → renderer (md/json) │ │ │ │ │ ▼ │ │ Playwright browser (Chromium) │ │ getBoundingClientRect · getComputedStyle · DOM walk │ └───────────────────────────────────────────────────────────┘
open spawns a daemon process managing a browser. Commands connect via Unix socket.# Open browser (non-blocking, starts daemon session)
cssprobe-cli open https://getbootstrap.com/docs/5.3/examples/checkout
cssprobe-cli inspect .container
cssprobe-cli layout .container
cssprobe-cli findings .container
cssprobe-cli close
# Open browser in headed mode
cssprobe-cli open https://mysite.com --headed
cssprobe-cli state-save --name mysite
cssprobe-cli open https://mysite.com --state state.json --headed
cssprobe-cli inspect body --json
cssprobe-cli inspect body --json | jq '.findings[] | {id, confidence, message}'
cssprobe-cli ships an MCP server (stdio), so AI clients call it as a native tool — no shell needed:
cssprobe-cli mcp-install # auto-detect and configure installed clients
cssprobe-cli mcp-install --target=claude,cursor,codex cssprobe-cli mcp-install --local # write project-scoped config
Manual configuration for any MCP client:
{
"mcpServers": { "cssprobe-cli": { "command": "cssprobe-cli", "args": ["mcp"] } } }
Exposes 10 tools: cssprobe_open, cssprobe_inspect, cssprobe_tree, cssprobe_layout, cssprobe_findings, cssprobe_eval, cssprobe_screenshot, cssprobe_inject_css, cssprobe_close, cssprobe_status. Remove with cssprobe-cli mcp-uninstall.
| Command | Description |
|---|---|
open [url] | Open browser in session mode (non-blocking) |
open [url] --headed | Show browser window |
open [url] --state | Open with saved cookies + localStorage |
open [url] --viewport 1280x720 | Custom viewport size |
open [url] --expect-url | Fail unless the final URL matches the pattern |
open [url] --fail-on-login | Fail fast when redirected to a login URL |
close | Close browser session |
close --all | Close all sessions across all workspaces |
status | Show session status (URL, title, frame count) |
frames | List frames: index, name, URL, main marker |
doctor | Diagnose browser install vs Playwright expected revision |
| Command | Description |
|---|---|
inspect | Full CSS diagnosis (computed values, declared values, findings) |
inspect --layout | Include ASCII layout diagram |
inspect --brief | Compact: tree sketch + warnings/errors only |
inspect --json | Structured JSON output |
tree | DOM tree structure |
layout | ASCII layout diagram |
findings | Only issues/warnings/errors |
Inspection commands accept --frame to target an iframe; the default is the main frame.
| Command | Description |
|---|---|
inject-css | Inject CSS into current page |
| Command | Description |
|---|---|
resize | Resize browser viewport |
eval | Evaluate JavaScript (browser context); DOM nodes are auto-serialized; promises are awaited, undefined fields become null |
eval @file / eval - | Read the expression from a file or stdin |
playwright | Execute Playwright API (Node.js context) |
screenshot | Take screenshot (saves to ~/.cssprobe-cli/screenshots/, --out to override) |
| Command | Description | |||
|---|---|---|---|---|
click | Real mouse click (auto-scroll + actionability wait; works with custom React components) | |||
hover | Real mouse hover | |||
type | Fill text (replaces value); --press Enter to submit; --sequential for real key events | |||
wait-for | Wait for selector state (`--state visible\ | hidden\ | attached\ | detached, --timeout ms`) |
wait-for --js " " | Wait until a JS predicate is truthy | |||
wait-for --network-idle | Wait until the page is network-idle (page-level; no --frame) | |||
wait-for ... --frame | Wait inside an iframe (selector/js modes) | |||
sample " " | Sample an expression over time (--interval, --duration, --key, --frame); returns timeline + summary | |||
wait-stable " " | Wait until an expression stops changing (--tolerance, --window, --timeout) | |||
run | Run a multi-step flow script |
click / hover support --nth N (1-based, default first match), --force (skip actionability checks) and --timeout ms. Without --nth, multiple matches fail (strict) to prevent wrong-target clicks.
| Command | Description |
|---|---|
state-import | Import cookies from Netscape format |
state-save | Save current browser session state (cookies + localStorage) |
state-check | Validate a state file: cookie count, expiry, target domain coverage (--state, --url) |
| Command | Description |
|---|---|
config-show | Show current config |
config-set | Set config value |
config-list | List all profiles |
config-use | Switch active profile |
config-new | Create new profile |
config-path | Show config file path |
The interaction commands drive a page step by step; run turns a sequence into a versionable script:
cssprobe-cli open https://example.com/editor
cssprobe-cli wait-for .editor-canvas cssprobe-cli click ".layout-switch" --nth 1 cssprobe-cli type ".block-title input" "Hello" --press Enter cssprobe-cli inspect .block-grid --json cssprobe-cli close
For repeatable flows, write a script and run it with one command. The script runs inside the daemon session (full Playwright page access):
// flow.js
export default async ({ page, context, frames, newPage, click, waitFor, type, inspect, screenshot, expect, log }) => { await page.goto('https://example.com/editor', { waitUntil: 'domcontentloaded' }); await waitFor('.editor-canvas', { state: 'visible', timeout: 10000 });
await click('.layout-switch', { nth: 1 }); await waitFor({ js: "() => document.body.dataset.layout === 'two-col'" });
await type('.block-title input', 'Hello', { press: 'Enter', sequential: true, clear: true }); await waitFor({ networkIdle: true });
const { findings } = await inspect('.block-grid', { format: 'json' }); log('findings:', findings.length); await screenshot({ path: './after-layout-switch.png' });
return { findings: findings.length }; };
cssprobe-cli run ./flow.js # --timeout ms for the whole script (default 300000, 0 = unlimited)
Scripts must default-export an async function receiving the API object: page, context, frames(), newPage(), click, hover, type, waitFor, inspect, screenshot, expect, log. waitFor accepts { state, timeout, frame }. Uncaught page errors are collected into the result envelope as pageErrors. screenshot relative paths resolve against the script's directory; logs (log() and console.*) are collected and returned with the result. On failure the command exits 1, prints the collected logs, and keeps the session alive.
Scripts are executed by the local daemon with full Node privileges — only run trusted scripts.
Run repeatable regression cases from a JSON suite: each case opens a fresh browser, executes steps, asserts on saved values, and writes artifacts + an optional JUnit report.
cssprobe-cli scenario run suites/ticket-26571394.json \
--state ~/.cssprobe-cli/states/preprod.json \ --artifacts out/ticket-26571394 \ --junit out/junit.xml
{
"name": "ticket 26571394 preprod", "defaults": { "viewport": { "width": 1280, "height": 800 } }, "cases": [ { "name": "refresh keeps the hash section align
ตัดมาแค่ช่วงต้น อ่านต่อใน repo