bb-browser 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mcp.js CHANGED
@@ -21044,10 +21044,28 @@ function textResult(value) {
21044
21044
  async function runCommand(request) {
21045
21045
  return sendCommand({ id: generateId(), ...request });
21046
21046
  }
21047
- var server = new McpServer({
21048
- name: "bb-browser",
21049
- version: "0.4.0"
21050
- });
21047
+ var server = new McpServer(
21048
+ { name: "bb-browser", version: "0.4.0" },
21049
+ { instructions: `bb-browser lets you control the user's real Chrome browser \u2014 with their login state, cookies, and sessions.
21050
+
21051
+ Your browser is the API. No headless browser, no cookie extraction, no anti-bot bypass.
21052
+
21053
+ Key capabilities:
21054
+ - browser_snapshot: Read page content via accessibility tree (use ref numbers to interact)
21055
+ - browser_click/fill/type: Interact with elements by ref from snapshot
21056
+ - browser_eval: Run JavaScript in page context (most powerful \u2014 full DOM/fetch access)
21057
+ - browser_network: Capture network requests/responses (API reverse engineering)
21058
+ - browser_screenshot: Visual page capture
21059
+ - browser_tab_list/tab_new: Multi-tab support \u2014 use tab parameter for concurrent operations
21060
+
21061
+ Site adapters (pre-built commands for popular sites):
21062
+ - Run via CLI: bb-browser site <name> [args]
21063
+ - Available: reddit, twitter, github, hackernews, xiaohongshu, zhihu, bilibili, weibo, douban, youtube
21064
+ - Update: bb-browser site update
21065
+ - List all: bb-browser site list
21066
+
21067
+ To create a new site adapter, run: bb-browser guide` }
21068
+ );
21051
21069
  server.tool(
21052
21070
  "browser_snapshot",
21053
21071
  "Get accessibility tree snapshot of the current page",