Skip to content

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

add command chaining section to SKILL.md files

ShawnPanaf850fe34ba10
diff --git a/skills/browser-use/SKILL.md b/skills/browser-use/SKILL.md
index 02d9a225e..0f11125bc 100644
--- a/skills/browser-use/SKILL.md
+++ b/skills/browser-use/SKILL.md
@@ -312,6 +312,23 @@ browser-use screenshot
| `--json` | Output as JSON |
| `--mcp` | Run as MCP server via stdin/stdout |
+## Command Chaining
+
+Commands can be chained with `&&` in a single shell invocation. The browser persists between commands via a background daemon, so chaining is safe and more efficient than separate calls.
+
+```bash
+# Chain open + state in one call
+browser-use open https://example.com && browser-use state
+
+# Chain multiple interactions
+browser-use input 5 "[email protected]" && browser-use input 6 "password123" && browser-use click 7
+
+# Fill and verify
+browser-use input 3 "search query" && browser-use keys "Enter" && browser-use state
+```
+
+**When to chain:** Use `&&` when you don't need to read the output of an intermediate command before proceeding. Run commands separately when you need to parse the output first (e.g., `state` to discover indices, then interact using those indices).
+
## Tips
1. **Always run `browser-use state` first** to see available elements and their indices
diff --git a/skills/remote-browser/SKILL.md b/skills/remote-browser/SKILL.md
index 7cbf86751..acd66a107 100644
--- a/skills/remote-browser/SKILL.md
+++ b/skills/remote-browser/SKILL.md
@@ -222,6 +222,23 @@ browser-use screenshot
| `--cdp-url <url>` | Connect to existing browser via CDP URL (`http://` or `ws://`) |
| `--json` | Output as JSON |
+## Command Chaining
+
+Commands can be chained with `&&` in a single shell invocation. The browser persists between commands via a background daemon, so chaining is safe and more efficient than separate calls.
+
+```bash
+# Chain open + state in one call
+browser-use open https://example.com && browser-use state
+
+# Chain multiple interactions
+browser-use input 5 "[email protected]" && browser-use input 6 "password123" && browser-use click 7
+
+# Fill and verify
+browser-use input 3 "search query" && browser-use keys "Enter" && browser-use state
+```
+
+**When to chain:** Use `&&` when you don't need to read the output of an intermediate command before proceeding. Run commands separately when you need to parse the output first (e.g., `state` to discover indices, then interact using those indices).
+
## Tips
1. **Run `browser-use doctor`** to verify installation before starting