feat: add agentcore browser tool#133
Draft
craigh33 wants to merge 19 commits into
Draft
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new ADK tool package (tools/agentcorebrowser) that exposes a constrained subset of Amazon Bedrock AgentCore Browser capabilities (session lifecycle + CDP-backed navigate/text extraction/screenshot), along with tests, docs, and a runnable example. Also moves the Nova Web Grounding documentation out of the root README into tools/novagrounding/README.md.
Changes:
- Introduce
agentcore_browsertool with session start/status/stop and constrained CDP actions (navigate,extract_text,screenshot) plus host policy checks and artifact-backed screenshots. - Add unit tests and a runnable example CLI under
examples/bedrock-agentcore-browser. - Update docs: new tool README, new Nova grounding README, and root README example list adjustments.
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/agentcorebrowser/tool.go | Implements the AgentCore Browser ADK tool, including CDP connection logic and host policy checks. |
| tools/agentcorebrowser/tool_test.go | Adds unit tests for config validation, host policy, CDP actions, and artifact saving. |
| tools/agentcorebrowser/README.md | Documents tool usage, behavior, and required IAM permissions. |
| examples/bedrock-agentcore-browser/main.go | Runnable example wiring the tool into an ADK agent/runner. |
| examples/bedrock-agentcore-browser/README.md | Example setup and IAM documentation. |
| examples/bedrock-agentcore-browser/Makefile | Adds a simple make run wrapper for the example. |
| tools/novagrounding/README.md | Adds Nova grounding docs previously in the root README. |
| README.md | Adds the AgentCore Browser example to the list and removes the embedded Nova grounding section. |
| go.mod | Adds bedrockagentcore and makes gorilla/websocket a direct dependency. |
| go.sum | Records new module checksums for the added dependencies. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
tools/agentcorebrowser, a constrained ADK tool for Amazon Bedrock AgentCore Browser. It supports session start/status/stop plus CDP-backednavigate,extract_text, andscreenshotactions with host policy checks and artifact-backed screenshots.Also adds a runnable
examples/bedrock-agentcore-browser, package docs, tests, and moves the Nova Web Grounding note from the root README intotools/novagrounding/README.md.Type of change
Testing
make testmake lint(or equivalent local golangci-lint)examples/bedrock-agentcore-browserAdditional verification:
make build; commit hooks passed.Checklist
pre-commit run --all-files(or equivalent local hooks).Related issues
Fixes #98