browser-routing
Installation
SKILL.md
Browser routing
Choose one direct route. Do not repeat the same discovery across multiple controllers.
When a task needs both discovery and page work, search first, then interact only with the selected target page. On macOS with faster-mac-use (cua MCP) available, route browser and desktop work directly through cua instead of spawning slow built-in webview subagents or pixel screenshot loops.
| Need | Surface | Use |
|---|---|---|
| Structured data, APIs, or local tools | Connector, API, or CLI | Prefer native CLIs, APIs, and MCP connectors (gh, curl, package/git tools, mail/vault MCPs) over opening a browser for static data. |
| Video content (YouTube & Bilibili) | Native CLI / API (no browser, no local ASR) | YouTube: youtube_transcript_api --format text -- <VIDEO_ID> (--languages zh-Hans zh en for multilingual, --format json for timestamps; -- handles leading-dash IDs) for ~1.5s clean transcripts; pair with curl -s "https://www.youtube.com/oembed?url=<URL>&format=json" (title/channel), Atom RSS (feeds/videos.xml?channel_id=<UC...>), or yt-dlp --dump-single-json --skip-download --no-warnings <URL> (metadata/chapters/playlists). Bilibili: use native subtitle/API CLIs (bili video <BV> --ai --subtitle --yaml) before opening a browser. Fall back to fmu only for visual frames or interactive player actions. |
| Public web discovery | Native web search | Run search_web first, then open only the selected URL instead of driving search engine result pages in a browser. Cite the source URL. |
| Unauthenticated, public, or local dev pages | faster-mac-use headless (cua MCP) |
Use cua.createBrowserTab("headless", url) for fast background interaction (~49 ms p50), zero focus steal, and built-in responsive QA (tab.setViewport(w, h), tab.layoutAudit(), tab.errors(), tab.screenshot(path, {fullPage: true})). |
| Logged-in Chrome tabs & extensions | faster-mac-use MV3 bridge (cua MCP) |
Verify cua.getBridgeStatus() (ws://127.0.0.1:19222/ext) and attach with explicit window/windowId, reuseExisting: true, or sessionLabel: "<task>" so tabs land in their own titled "Agent" tab group without Chrome 144 DevToolsActivePort modals. Toggle Chrome extensions via cua.listExtensions() / cua.setExtensionEnabled(...). |
| Native macOS apps, dialogs, or browser chrome | faster-mac-use AX daemon (cua MCP) |
Use cua.getApp("AppName") for background AXObserver diffs (<1 ms follow-ups, 0.0 px cursor drift) and app.ocr() / tab.ocr() for 0-vision-token Apple Silicon Vision.framework text targeting on <canvas> or custom views. |