Skip to content

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

fix 3 remaining cubic review issues

ShawnPana5ee7104fccc3
diff --git a/skills/browser-use-docs/references/cloud/api-v2.md b/skills/browser-use-docs/references/cloud/api-v2.md
index 9c50c235d..5be9d2c1d 100644
--- a/skills/browser-use-docs/references/cloud/api-v2.md
+++ b/skills/browser-use-docs/references/cloud/api-v2.md
@@ -85,14 +85,20 @@ curl -X POST https://api.browser-use.com/api/v2/files/sessions/<session-id>/pres
-H "Content-Type: application/json" \
-d '{"fileName": "input.pdf", "contentType": "application/pdf", "sizeBytes": 102400}'
-# 2. Upload via multipart POST using the returned URL and fields (S3-style presigned POST)
+# 2. Upload via multipart POST using the returned URL and ALL returned fields (S3-style presigned POST)
+# Include every key-value pair from the response's `fields` object as form fields:
curl -X POST "<presigned-url>" \
-F "key=<fields.key>" \
+ -F "policy=<fields.policy>" \
+ -F "x-amz-algorithm=<fields.x-amz-algorithm>" \
+ -F "x-amz-credential=<fields.x-amz-credential>" \
+ -F "x-amz-date=<fields.x-amz-date>" \
+ -F "x-amz-signature=<fields.x-amz-signature>" \
-F "Content-Type=application/pdf" \
```
-The v2 presigned URL response includes `fields` for a multipart POST form upload (S3-style). Presigned URLs expire after **120 seconds**. Max file size: **10 MB**.
+The v2 presigned URL response includes `fields` for a multipart POST form upload (S3-style). **Include all returned fields** as form fields — they contain the signing data. Presigned URLs expire after **120 seconds**. Max file size: **10 MB**.
---
diff --git a/skills/browser-use-docs/references/open-source/agent.md b/skills/browser-use-docs/references/open-source/agent.md
index ff76a453e..3e8497507 100644
--- a/skills/browser-use-docs/references/open-source/agent.md
+++ b/skills/browser-use-docs/references/open-source/agent.md
@@ -69,7 +69,7 @@ async def main():
### Performance & Limits
- `max_history_items`: Max steps to keep in LLM memory (`None` = all)
-- `llm_timeout` (default: `60`, auto-detected: 30s for Gemini, 90s for o3): Seconds for LLM calls
+- `llm_timeout` (default: auto-detected per model — Groq: 30s, Gemini: 75s, Gemini 3 Pro: 90s, o3/Claude/DeepSeek: 90s, others: 75s): Seconds for LLM calls
- `step_timeout` (default: `180`): Seconds for each step
- `directly_open_url` (default: `True`): Auto-open URLs detected in task
diff --git a/skills/browser-use-docs/references/open-source/examples.md b/skills/browser-use-docs/references/open-source/examples.md
index 7123ceb3b..dd6f77245 100644
--- a/skills/browser-use-docs/references/open-source/examples.md
+++ b/skills/browser-use-docs/references/open-source/examples.md
@@ -147,6 +147,7 @@ proc = subprocess.Popen([
'google-chrome', '--remote-debugging-port=9222', '--user-data-dir=/tmp/chrome-debug'
])
+pw = None
try:
# 2. Connect Playwright
pw = await async_playwright().start()
@@ -173,7 +174,8 @@ try:
agent = Agent(task="Fill out the form", llm=ChatBrowserUse(), browser=browser, tools=tools)
await agent.run()
finally:
- await pw.stop()
+ if pw:
+ await pw.stop()
proc.terminate()
proc.wait()
```