bedrock-agentcore
Fast and secure cloud-based browser runtime for web automation. Fill forms, navigate websites, and extract information in managed environment.
by Amazon Web Services
Module not found "https://esm.sh/[email protected]".
Last checked: 4/9/2026, 4:37:23 AM
Test bedrock-agentcore (BrowserTools) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install bedrock-agentcorepnpm add bedrock-agentcoreyarn add bedrock-agentcorebun add bedrock-agentcoredeno add npm:bedrock-agentcoreimport { BrowserTools } from 'bedrock-agentcore';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { BrowserTools } from 'bedrock-agentcore';
const result = await generateText({
model: openai('gpt-4o'),
tools: { BrowserTools },
prompt: 'Your prompt here...',
});
console.log(result.text);How AI agents can use this tool
Use for browser automation and web interaction tasks
Available configuration options
No schema available for this tool.
Deploy AI agents to AWS with VM-level isolation and zero infrastructure
The SDK is designed to work with any agent framework. Here's how:
BedrockAgentCoreApp accepts any request handler — plug in Strands Agents, Vercel AI SDK, LangChain, or your own custom logic.CodeInterpreter, PlaywrightBrowser) directly and wire them into your own tool definitions.withAccessToken, withApiKey) work with any async function, regardless of framework.npm install bedrock-agentcore @strands-agents/sdk
import { BedrockAgentCoreApp } from 'bedrock-agentcore/runtime' import { Agent, BedrockModel } from '@strands-agents/sdk' import { z } from 'zod' const agent = new Agent({ model: new BedrockModel({ modelId: 'global.amazon.nova-2-lite-v1:0' }), }) const app = new BedrockAgentCoreApp({ invocationHandler: { requestSchema: z.object({ prompt: z.string() }), process: async function* (request) { for await (const event of agent.stream(request.prompt)) { if (event.type === 'modelContentBlockDeltaEvent' && event.delta?.type === 'textDelta') { yield { event: 'message', data: { text: event.delta.text } } } } }, }, }) app.run()
BedrockAgentCoreApp creates an AgentCore Runtime-compliant server—handling request parsing, streaming responses, and session management for seamless deployment.
Give your agent secure code execution with three lines:
import { CodeInterpreterTools } from 'bedrock-agentcore/experimental/code-interpreter/strands' import { Agent, BedrockModel } from '@strands-agents/sdk' const codeInterpreter = new CodeInterpreterTools({ region: 'us-east-1' }) const agent = new Agent({ model: new BedrockModel({ modelId: 'global.amazon.nova-2-lite-v1:0' }), tools: codeInterpreter.tools, }) // Agent can now execute code in a secure sandboxed environment
npm install bedrock-agentcore
Prerequisites: Node.js 20+, AWS credentials, AgentCore access
Apache 2.0 — see LICENSE
Downloads/month
129,220
GitHub Stars
60
Quality Score