BrowserCustom
Source:
src/AWS/BedrockAgentCore/BrowserCustom.ts
A custom Amazon Bedrock AgentCore Browser — a managed, isolated cloud browser that agents drive to interact with websites.
A custom browser controls the sandbox’s network mode, execution role, and session recording. All configuration is create-only (the API has no update operation); property changes trigger a replacement.
Creating Browsers
Section titled “Creating Browsers”Public-Egress Browser
import * as AgentCore from "alchemy/AWS/BedrockAgentCore";
const browser = yield* AgentCore.BrowserCustom("AgentBrowser", {});Browser with Session Recording
const browser = yield* AgentCore.BrowserCustom("RecordedBrowser", { executionRoleArn: role.roleArn, recording: { enabled: true, s3Location: { bucket: bucket.bucketName, prefix: "sessions/" }, },});