Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Merge remote-tracking branch 'origin/main' into agency/cloud-skill-v4

MagMueller442455465bf1
diff --cc tests/ci/test_browser_use_skill_install_docs.py
index 754e991ef,933614c1c..041de7c3e
--- a/tests/ci/test_browser_use_skill_install_docs.py
+++ b/tests/ci/test_browser_use_skill_install_docs.py
@@@ -58,16 -57,40 +58,50 @@@ def test_docs_install_browser_use_skill
assert 'raw.githubusercontent.com/browser-use/browser-harness/main/SKILL.md' not in readme
+def test_cloud_v4_reference_scopes_workspace_file_listing():
+ api_v4 = (ROOT / 'skills' / 'cloud' / 'references' / 'api-v4.md').read_text(encoding='utf-8')
+
+ assert 'client.workspaces.files(workspace.id)' in api_v4
+ assert 'client.workspaces.files()' not in api_v4
+ python_examples = re.findall(r'```python\n(.*?)```', api_v4, flags=re.DOTALL)
+ assert python_examples
+ assert all('BrowserUse' in example for example in python_examples if 'client.' in example)
+
+
+ def test_remote_browser_skill_uses_current_cli():
+ remote_skill = (ROOT / 'skills' / 'remote-browser' / 'SKILL.md').read_text(encoding='utf-8')
+
+ for removed_command in (
+ 'browser-use open',
+ 'browser-use state',
+ 'browser-use click',
+ 'browser-use input',
+ 'browser-use tab',
+ 'browser-use screenshot',
+ 'browser-use eval',
+ 'browser-use cookies',
+ 'browser-use close',
+ 'browser-use sessions',
+ 'browser-use tunnel',
+ 'browser-use wait',
+ 'browser-use register',
+ 'browser-use cloud connect',
+ 'browser-use --connect',
+ 'browser_use/skill_cli/README.md',
+ ):
+ assert removed_command not in remote_skill
+
+ for current_command in (
+ "browser-use <<'PY'",
+ 'start_remote_daemon("r7k2")',
+ 'BU_NAME=r7k2 browser-use',
+ 'new_tab("https://example.com")',
+ 'print(page_info())',
+ 'stop_remote_daemon("r7k2")',
+ ):
+ assert current_command in remote_skill
+
+
def test_browser_use_cli_installs_browser_harness_package_skill(tmp_path):
bin_dir = _fake_browser_harness_tools(tmp_path, '---\nname: browser-harness\n---\n\n# Browser Harness\n')