examples: enable the full Anthropic browser toolset (#5978)
The Anthropic quickstart previously registered Bash but left JavaScript, file uploads, console logs, and network logs disabled. Enable all 31 browser actions plus Bash in the example, with per-call confirmation for JavaScript/uploads and local upload roots for inputs and generated outputs. Document opt-outs and preserve the configuration when switching to Cloud. Show only the approval diagram’s callback flow beside the callback example, with matching editable assets. The BrowserUse constructor defaults remain unchanged. Validation: pre-commit passed; integration tests 11 passed / 1 skipped; 12 focused SDK/configuration/approval checks passed, including declined/error callbacks and outside-root upload rejection. README and docs quickstarts match the executable example. SVG layout visually reviewed. No model API or benchmark run. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Enables the full Anthropic browser toolset in the integration example so users see all 31 browser actions plus Bash instead of Anthropic's reduced defaults. - Enables `javascript_exec`, `file_upload`, `read_console`, and `read_network` via `configs`, with per-call confirmation prompts for JavaScript and file uploads. - Restricts local uploads to `uploads/` and `outputs/` roots; Cloud configuration keeps the tool selection and approval settings. - Replaces the previous confirmation-callback diagram with one covering the whole gated flow, adds an editable Excalidraw source, and documents opt-outs for individual actions and Bash. - Adds a pyright ignore on `ConfirmContext` and `LocalFilePolicy` imports so the example compiles without the Anthropic browser SDK types, and verifies the enabled actions in the integration test. <sup>Written for commit a25564be15cea98327a87079b3bef9ed15304ba2. Summary will update on new commits.</sup> <a href="https://cubic.dev/pr/browser-use/browser-use/pull/5978?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
M
Magnus Müller committed
e5bbb64862cd1621afdbe0a48c04b06737b8ec0b
Committed by GitHub <noreply@github.com>
on 10/2/2026, 7:29:35 PM