Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Outline

LangGraph Browser Example

A LangGraph JavaScript agent with AWS-managed browser capabilities deployed to Bedrock AgentCore.

Features

  • Browser Automation: Navigate, click, type, extract text, take screenshots
  • LangGraph JS: ReAct agent pattern with browser tools
  • Claude Sonnet 5: Powered by Amazon Bedrock
  • Minimal Configuration: Just ai: { agents: { browserAgent: {} } } in serverless.yml

Tools Available

Tool Description
navigate Navigate to a URL
click Click an element by CSS selector
type_text Type text into an input element
get_text Extract text from the page or element
get_html Get HTML content of the page or element
screenshot Take a screenshot
evaluate Execute JavaScript in the page
wait_for_element Wait for an element to appear

Quick Start

Prerequisites

  • Node.js 24+
  • AWS credentials configured
  • Serverless Framework CLI

Deploy

npm install
sls deploy

Test

RUNTIME_ARN=<your-runtime-arn> node test-invoke.js

Remove

sls remove

Related Examples

Morty Proxy This is a proxified and sanitized view of the page, visit original site.