Skip to content

BedrockAgentCoreClient.start_browser_session

rboto-bedrock-agentcore==0.4.0 · Service index · Types

Model summary (excerpt): Creates and initializes a browser session in Amazon Bedrock AgentCore. The session enables agents to navigate and interact with web content, extract information from websites, and perform web-based tasks as part of their response generation. To create a session, you must specify a browser identifier and a name. You can also configure the viewport dimensions to control the visible area of web...

Install and imports

python -m pip install "rboto[bedrock-agentcore]==0.4.0"
from rboto import BedrockAgentCoreClient
from collections.abc import Sequence
from rboto_bedrock_agentcore.types import (
    BrowserEnterprisePolicy,
    BrowserExtension,
    BrowserProfileConfiguration,
    Certificate,
    ProxyConfiguration,
    StartBrowserSessionOutput,
    ToolsFileSystemConfiguration,
    ViewPort,
)

Signature

async def start_browser_session(
    *,
    browser_identifier: str,
    trace_id: str | None = None,
    trace_parent: str | None = None,
    name: str | None = None,
    session_timeout_seconds: int | None = None,
    view_port: ViewPort | None = None,
    extensions: Sequence[BrowserExtension] | None = None,
    profile_configuration: BrowserProfileConfiguration | None = None,
    proxy_configuration: ProxyConfiguration | None = None,
    enterprise_policies: Sequence[BrowserEnterprisePolicy] | None = None,
    certificates: Sequence[Certificate] | None = None,
    filesystem_configurations: Sequence[ToolsFileSystemConfiguration] | None = None,
    client_token: str | None = None,
) -> StartBrowserSessionOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
browser_identifier Yes The unique identifier of the browser to use for this session. This identifier specifies which browser environment to initialize for the session.
trace_id No The trace identifier for request tracking.
trace_parent No The parent trace information for distributed tracing.
name No The name of the browser session. This name helps you identify and manage the session. The name does not need to be unique.
session_timeout_seconds No The duration in seconds (time-to-live) after which the session automatically terminates, regardless of ongoing activity. Defaults to 3600 seconds (1 hour). Recommended minimum: 60 seconds. Maximum allowed: 28,800 seconds (8 hours).
view_port No The dimensions of the browser viewport for this session. This determines the visible area of the web content and affects how web pages are rendered. If not specified, Amazon Bedrock AgentCore uses a default viewport size.
extensions No A list of browser extensions to load into the browser session.
profile_configuration No The browser profile configuration to use for this session. A browser profile contains persistent data such as cookies and local storage that can be reused across multiple browser sessions. If specified, the session initializes with the profile's stored data, enabling continuity for tasks that require authentication or personalized settings.
proxy_configuration No Optional proxy configuration for routing browser traffic through customer-specified proxy servers. When provided, enables HTTP Basic authentication via Amazon Web Services Secrets Manager and domain-based routing rules. Requires secretsmanager:GetSecretValue IAM permission for the specified secret ARNs.
enterprise_policies No A list of files containing enterprise policies for the browser.
certificates No A list of certificates to install in the browser session.
filesystem_configurations No The file system configurations to mount into the browser session. Use these configurations to mount your own Amazon Simple Storage Service (Amazon S3) Files or Amazon Elastic File System (Amazon EFS) access points. Your session can then read and write your data. If you don't specify this field, no additional file systems are mounted.
client_token No A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock AgentCore ignores the request, but does not return an error. This parameter helps prevent the creation of duplicate sessions if there are temporary network issues.

Output

StartBrowserSessionOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
browser_identifier str Always present —
session_id str Always present —
created_at str Always present —
streams BrowserSessionStreamOutput | None Always present BrowserSessionStreamOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

BrowserEnterprisePolicy, BrowserExtension, BrowserProfileConfiguration, Certificate, ProxyConfiguration, StartBrowserSessionOutput, ToolsFileSystemConfiguration, ViewPort

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_bedrock_agentcore.exceptions:

AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model