- Removed the partial response capture wrapper method to simplify API call logic.
- Directly invoked API calls in multiple locations, improving readability and maintainability.
- Enhanced response handling to strip JSON wrappers from responses, ensuring proper parsing.
- Updated logging to provide clearer context during API interactions.
This change streamlines the API interaction process and improves error handling clarity.
<!-- This is an auto-generated description by cubic. -->
## Summary by cubic
Adds a new Actor API (Page, Element, Mouse) for low‑level,
Playwright‑like automation on CDP, integrated with BrowserSession.
Includes LLM-assisted element finding and content extraction, plus
CDP-based tab management.
- **New Features**
- New actor classes: Page, Element, Mouse with robust
click/fill/drag/select, mouse move/scroll, JS evaluate, screenshots.
- BrowserSession integration: new_page, get_pages, get_current_page,
close_page, cookies; Browser alias preserved.
- LLM APIs on Page: get_element_by_prompt, must_get_element_by_prompt,
extract_content(Pydantic).
- Playgrounds and example custom function using the browser in tools;
removed legacy DOM playground; minor agent cleanup.
- **Documentation**
- New Actor docs: basics, examples, all-parameters; linked in
navigation.
- Updated browser and tools docs to reference Actor usage.
<!-- End of auto-generated description by cubic. -->
### Why do we need this PR?:
This PR fixes
[#3078](https://github.com/browser-use/browser-use/issues/3078), where
`ChatAWSBedrock `fails when using temporary AWS credentials (e.g.,
STS/SSO or role-chained). The root cause was that the class didn't
implement `AWS_SESSION_TOKEN`, unlike `ChatAnthropicBedrock`.
### Changes:
Add support for reading `AWS_SESSION_TOKEN `when initializing
`ChatAWSBedrock`.
Aligns behavior with `ChatAnthropicBedrock `for consistency.
### Impact:
Users relying on temporary credentials (via aws sts assume-role, SSO, or
chained roles) can now authenticate successfully.
No breaking changes for users with permanent credentials.
### Tested:
Verified with temporary credentials (`AWS_ACCESS_KEY_ID`,
`AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN`, `AWS_REGION`).
Confirmed successful invocation of Bedrock models where it previously
failed with “The security token included in the request is invalid.”
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Fixes auth failures in ChatAWSBedrock with temporary AWS credentials by
supporting AWS_SESSION_TOKEN and passing it to the Bedrock client. Users
using STS/SSO/assume-role can authenticate successfully; permanent
credentials continue to work.
- **Bug Fixes**
- Read AWS_SESSION_TOKEN from env/params and include it when creating
the Bedrock client.
- Updated error message and usage docs to mention AWS_SESSION_TOKEN.
<!-- End of auto-generated description by cubic. -->
<!-- This is an auto-generated description by cubic. -->
## Summary by cubic
Adds a direct signup link for the Browser-Use API key to auth errors and
examples, and updates docs to use the correct use_cloud flag. Clarifies
how to supply a CDP URL from external providers and cleans up
wording/formatting in cloud examples.
<!-- End of auto-generated description by cubic. -->
Auto-generated PR for: fix framework_events_script
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Fixes framework event triggering by binding to the element via this in
CDP Runtime.callFunctionOn, improving reliable focus/click/input
dispatch in SPAs. Also tweaks README example link copy.
- **Bug Fixes**
- Use this instead of arguments[0] in framework_events_script and stop
passing arguments to callFunctionOn, ensuring correct element binding
and consistent event firing.
<!-- End of auto-generated description by cubic. -->
Auto-generated PR for branch: improve-readme5
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Updated README to link to the examples page in the docs instead of the
repo’s examples folder, so readers always see the latest examples.
<!-- End of auto-generated description by cubic. -->