ubrowser
# μBrowser
What this skill does
# μBrowser
Control a headless browser with 98% token reduction compared to Playwright MCP and Dev Browser. Uses batch execution, minimal responses, and efficient HTML formatting.
## Setup
Start the ubrowser server before using browser tools:
```bash
./skills/ubrowser/server.sh &
```
Wait for "μBrowser MCP server started" message. First run installs dependencies and downloads Playwright Chromium.
Use `--headless` flag for headless mode:
```bash
./skills/ubrowser/server.sh --headless &
```
## Key Optimization: Batch Execution
**Always prefer `browser_batch` for multi-step workflows.** This is the key to 98% cost savings.
Instead of:
```
browser_navigate → browser_type → browser_type → browser_click (4 calls, 4 snapshots)
```
Use:
```json
{
"tool": "browser_batch",
"steps": [
{"tool": "navigate", "args": {"url": "/login"}},
{"tool": "type", "args": {"selector": "#email", "text": "[email protected]"}},
{"tool": "type", "args": {"selector": "#password", "text": "secret"}},
{"tool": "click", "args": {"selector": "button[type=submit]"}}
],
"snapshot": {"when": "final"}
}
```
**Result: 1 call, 1 snapshot = 80%+ token reduction**
## Available Tools
### browser_navigate
Navigate to a URL.
```json
{"url": "https://example.com"}
```
### browser_click
Click element by ref or selector.
```json
{"ref": "e1"}
{"selector": "button.submit"}
```
### browser_type
Type text into input.
```json
{"ref": "e2", "text": "[email protected]", "clear": true, "pressEnter": true}
```
### browser_select
Select dropdown option.
```json
{"selector": "#country", "label": "United States"}
```
### browser_scroll
Scroll page or element.
```json
{"direction": "down", "amount": 500}
{"toBottom": true}
```
### browser_snapshot
Get interactive elements with refs (e1, e2, e3...).
```json
{"scope": "#main", "format": "full"}
```
### browser_batch (KEY)
Execute multiple actions, snapshot only at end.
```json
{
"steps": [
{"tool": "navigate", "args": {"url": "/search"}},
{"tool": "type", "args": {"selector": "input[name=q]", "text": "query"}},
{"tool": "click", "args": {"selector": "button[type=submit]"}}
],
"snapshot": {"when": "final", "scope": ".results"}
}
```
### browser_pages
Manage multiple browser pages.
```json
{"action": "create", "name": "login"}
{"action": "switch", "name": "dashboard"}
{"action": "list"}
{"action": "close", "name": "login"}
```
### browser_inspect
Inspect specific element.
```json
{"selector": ".form", "includeText": true, "depth": 3}
```
## Element References
Snapshots return elements with short refs:
```
<input id="e1" type="email" placeholder="Email">
<input id="e2" type="password">
<button id="e3">Sign In</button>
```
Use refs in subsequent commands: `{"ref": "e1", "text": "[email protected]"}`
## Best Practices
1. **Always batch** - Use `browser_batch` for multi-step flows
2. **Request snapshots sparingly** - Default is no snapshot, add `snapshot: {include: true}` only when needed
3. **Scope snapshots** - Use `scope` parameter to limit to relevant DOM region
4. **Use refs** - Short IDs save tokens vs full selectors
5. **Use diff format** - After first snapshot, use `format: "diff"` for changes only
## Cost Comparison (Opus 4.5)
| Approach | Per Task | Monthly (3000) |
|----------|----------|----------------|
| Playwright MCP | $3.28 | $9,827 |
| μBrowser | $0.01 | $45 |
| **Savings** | **$3.26** | **$9,782** |
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.