मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग19k · #10499

browser-harness

यह क्या करती है

यह स्किल आपके एजेंट को असली browser पर सीधा नियंत्रण देती है, आपके लॉगिन सेशन सहित। यह उन कामों के लिए है जिनमें किसी साइट पर क्लिक, टाइप या नेविगेट करना हो, न कि सार्वजनिक पेजों के सरल डाउनलोड के लिए।

कब इस्तेमाल करें

  • ✓जब किसी काम में वेबसाइट पर क्लिक, टाइप या नेविगेट करना हो।
  • ✓जब किसी पेज को लोड होने के लिए आपका लॉगिन सेशन या JavaScript चाहिए।
  • ✓जब कोई साइट सरल अनुरोध ब्लॉक करे और असली browser चाहिए।

Skill का लिंक

https://github.com/browser-use/browser-harness/blob/main/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/browser-use/browser-harness/blob/main/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“इस साइट का dashboard पेज मेरे browser में खोलिए और नवीनतम आँकड़े पढ़कर बताइए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल Chrome DevTools protocol से browser से जुड़ती है और helper functions वाली छोटी स्क्रिप्ट चलाती है। साधारण सार्वजनिक पेज सीधे लाए जाते हैं, इसलिए browser तभी इस्तेमाल होता है जब बातचीत ज़रूरी हो।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

browser-harness

Direct browser control via CDP. For task-specific edits, use agent-workspace/agent_helpers.py. For setup, install, or connection problems, read https://github.com/browser-use/browser-harness/blob/main/install.md.

When Not to Use

A basic fetch of public information needs no browser. If a plain HTTP request can read it — a public page, an API, docs — use curl or your fetch tool, and leave the browser alone. Use browser-harness when the task needs interaction (click, type, navigate), the user's logged-in session, JS rendering, or a bot-protected page. If a direct fetch fails or returns a shell page, then escalate to the browser.

Domain skills are off by default. Set BH_DOMAIN_SKILLS=1 to enable them; see the bottom section.

If BH_DOMAIN_SKILLS=1 and the task is site-specific, read every file in the matching $BH_AGENT_WORKSPACE/domain-skills/<site>/ directory before inventing an approach.

Usage

browser-harness <<'PY'
print(page_info())
PY
  • Invoke as browser-harness. Use heredocs for multi-line commands.
  • Helpers are pre-imported. run.py calls ensure_daemon() before exec.
  • First navigation for a task is new_tab(url), not goto_url(url). The daemon preserves the attached tab across separate CLI invocations, so do not call new_tab() again in every script.
  • Keep one working tab per task/site. Before opening another, inspect current_tab() and list_tabs() and use switch_tab() to reuse a matching tab. Do not leave duplicate tabs on the same URL or close tabs you did not create.
  • At task completion, close tabs created for the task that are no longer needed. Keep a tab open if the user needs to see it, it is needed for a known follow-up, or closing it could discard unsaved work or other important state.
  • new_tab() and switch_tab() attach and move the horse marker without changing Chrome's visible tab. Screenshots and normal CDP input work in the background. Never call activate_tab(target) automatically: it brings Chrome to the foreground. Call it only when the user explicitly asks to see or visibly switch to that tab. Do not pair switch_tab() with activate_tab().
  • A local daemon is a connection to the whole Chrome instance, not to one site, task, card, or agent. Omit BU_NAME and reuse the default daemon for normal sequential local work across websites, tabs, screenshots, and Codex turns. Do not invent per-job names such as gmail1375 or slack1371: every new local daemon opens another browser-level CDP connection and Chrome may show another Allow prompt.
  • Set BH_TAB_MARKER=0 before starting the daemon to leave page titles unchanged. The horse marker remains enabled by default.
  • A timeout or page that pauses while hidden is not permission to foreground Chrome. Keep using background CDP operations. For a focus-gated page, temporarily call cdp("Emulation.setFocusEmulationEnabled", enabled=True), perform and verify the operation, then disable it in a finally block. If background control still cannot work, report that limitation instead of activating the tab. Do not invent a Runtime.evaluate scroll replacement or a cross-frame JS walker.
  • The normal local flow attaches to the running Chrome/Chromium CDP endpoint. No browser ids or local profile selection.

Local Chrome

The default daemon can keep many tabs and visit many sites; browser-harness has no per-site, screenshot, or result-count limit that requires a new daemon. Chrome memory and page complexity are the practical limits. Reuse matching tabs with list_tabs() and switch_tab().

One daemon has one mutable attached/current tab. Many agents can share it when their browser operations are serialized: treat local Chrome as one shared browser lane while non-browser work continues in parallel. Sequential tab switching, input, and screenshot capture are safe. Do not create another local daemon merely because several agents exist.

Two agents that switch tabs and act simultaneously can race, causing one to act on or capture the other's tab. For truly simultaneous interactive work, use separate remote browsers when Browser Use Cloud authentication is already available. Otherwise serialize browser operations through the default local daemon. A named local daemon is a last resort when simultaneous isolation is required, remote auth is unavailable or unsuitable, and the extra Chrome approval prompt is acceptable. It creates another

अक्सर पूछे जाने वाले सवाल

इसे कब इस्तेमाल नहीं करना चाहिए?

सार्वजनिक सामग्री, जैसे docs या APIs, के सरल fetch के लिए एक साधारण अनुरोध काफ़ी है।

क्या इसके लिए सेटअप चाहिए?

हाँ। इंस्टॉल और कनेक्शन के चरण प्रोजेक्ट की install गाइड में लिखे हैं।

क्या साइट-विशेष नोट्स शामिल हैं?

केवल तभी जब वैकल्पिक domain नोट्स चालू हों, और तब नया तरीका आज़माने से पहले उन्हें पढ़ा जाता है।

जानकारी

लेखक का मूल विवरण

Control a real browser via CDP: clicking, typing, navigation, logged-in sessions, JS-rendered or bot-protected pages. Not for plain HTTP fetches of public content - use curl for those.

repo: browser-use/browser-harness

लोकप्रियता

GitHub स्टार
19k
रैंकिंग में स्थान
#10499
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

मिलती-जुलती skills