Skip to content

[FEATURE] Add profile feature to AgentCoreBrowser #402

Description

@shasti421

Problem Statement

Support for newly released browser profile feature in Bedrock AgentCore.

https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/browser-profiles.html

Proposed Solution

One approach would be to add optional arg to init https://github.com/strands-agents/tools/blob/main/src/strands_tools/browser/agent_core_browser.py#L24
profile_configuration: Optional[Dict]

Change in bedrock_agentcore.tools.browser_client.BrowserClient.start to take profile_configuration as optional arg and add to request_params before calling data_plane_client.start_browser_session

if profile_configuration is not None:
            request_params["profileConfiguration"] = profile_configuration

https://github.com/aws/bedrock-agentcore-sdk-python/blob/main/src/bedrock_agentcore/tools/browser_client.py#L331

Use Case

Ability to use AWS Browser profile support in AgentCoreBrowser with Strands Agents

AgentCoreBrowser(
        region="us-east-1",
        identifier="browser-2456",
        session_timeout=300,
        profile_configuration={
           "profileIdentifier": "salesforce_profile"
         },
    )

Alternatives Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Language

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions