Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CAqWMdQGK6TSv1ozTgUteS
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
BrowserUseTools(libs/agno/agno/tools/browser_use.py). One tool,run_browser_task(task, session_id=None), sync and async. It runs the task on the Browser Use Cloud agent (API v4, officialbrowser-use-sdk), waits, and returns{"result", "session_id", "run_id"}as JSON. Passingsession_idback continues in the same browser. Errors come back as{"error": ...}JSON.timeout(default 900 s) is forwarded toToolkit; a run that exceeds it is cancelled so it stops using creditsbrowser-use = ["browser-use-sdk>=3.10.0"], added toagno[tools]; mypy override forbrowser_use_sdk.*(the SDK ships nopy.typed)cookbook/91_tools/browser_use_tools.py, README section, TEST_LOG entryWhy:
BrowserbaseToolsexposes low-level page actions. This hands a whole multi-step task (click, fill forms, log in, extract) to a hosted browser agent.Fixes #11093
Type of change
Checklist
./scripts/format.shand./scripts/validate.sh)Duplicate and AI-Generated PR Check
Additional Notes
Proof:
pytest libs/agno/tests/unit/tools/test_browser_use.py-> 9 passed onbrowser-use-sdk3.10.0 and on 3.11.3. Tests run the real SDK against a fake API v4 overhttpx.MockTransport: request body, follow-up session, failed run, API error, missing key sends no request, timeout cancels the run (sync and async), tool registration.session_id) fails 3 tests../scripts/validate.sh: ruff clean for agno, agnoctl and cookbook; cookbook pattern check clean; mypy reports 7 errors, all in untouched files underagno/db/andagno/os/and identical onmainwith the same local mypy, none in the new module.ruff formatrun on the changed files only.uv pip compile --extra testsbefore/after: the only change isbrowser-use-sdk==3.10.0(no other version moves).Risk: additive (new module, optional extra). Rollback: revert the commit.
🤖 Generated with Claude Code