All skills
zxkane avatar

/aws-agentic-ai

@e4ef2e2
by Mengxin Zhuzxkane/aws-skills365 stars
40

AWS Bedrock AgentCore comprehensive expert for deploying and managing AI agents at scale. Use when working with any AgentCore service including Gateway, Runtime, Memory, Identity, Code Interpreter, Browser, Observability, Agent Registry, or Evaluations. Covers agent deployment, MCP tool integration, credential management, agent discovery, governance workflows, and automated quality assessment. Essential when user mentions AgentCore, agent runtime, agent registry, agent evaluation, MCP gateway, deploy agent, register MCP server, discover agents, evaluate agent quality, agent credentials, or wants to build, deploy, catalog, or monitor AI agents on AWS.

Use this Skill: https://skilld.dev/gh/zxkane/aws-skills/aws-agentic-ai

This session only. Nothing lands on disk.

servicesbrowserREADME.md

≈2.6k tokens on demand. Your agent reads this file only when SKILL.md points to it.

AgentCore Browser Service

Status: ✅ Available

Overview

Amazon Bedrock AgentCore Browser provides a fast, secure, cloud-based browser runtime enabling AI agents to interact with websites at scale without infrastructure management.

Core Capabilities

Cloud-Based Runtime

  • Fast Execution: High-performance browser instances with minimal latency
  • Auto Scaling: Automatic scaling based on demand without configuration
  • Zero Infrastructure: No servers or containers to manage
  • Multi-Region: Deploy browser instances across AWS regions globally

Security and Compliance

  • Enterprise Security: Industry-standard security controls and encryption
  • Isolated Sessions: Each browsing session runs in complete isolation
  • Data Protection: Secure data handling and privacy controls
  • Compliance Ready: Meets enterprise compliance requirements (SOC, HIPAA, GDPR)

Web Interaction Capabilities

  • Full Automation: Complete browser automation capabilities
  • JavaScript Support: Execute JavaScript in browser context
  • Form Interaction: Fill forms, click buttons, navigate pages
  • Content Extraction: Extract text, data, and media from pages
  • Session Management: Handle cookies, local storage, and sessions
  • Screenshot Capture: Take screenshots of pages and elements

Observability

  • Execution Logging: Comprehensive logs of browser actions
  • Performance Metrics: Track page load times and operation latency
  • Error Tracking: Detailed error capture and debugging information
  • Request Monitoring: Monitor network requests and responses

Use Cases

Web Scraping and Data Extraction

Enable agents to:

  • Extract data from websites at scale
  • Scrape content from dynamic pages
  • Collect structured data from multiple sources
  • Monitor website changes over time

Automated Testing and QA

Support scenarios like:

  • Automated UI testing of web applications
  • Regression testing for web features
  • Cross-browser compatibility testing
  • Performance testing and monitoring

Form Filling and Workflow Automation

Allow agents to:

  • Automate form submissions
  • Complete multi-step workflows
  • Handle authentication and logins
  • Process batch operations on web interfaces

Real-Time Monitoring

Enable agents to:

  • Monitor website availability and uptime
  • Track content changes and updates
  • Verify website functionality
  • Gather competitive intelligence

Content Verification

Support tasks like:

  • Validate web content accuracy
  • Check link integrity
  • Verify page rendering
  • Test responsive designs

Architecture

Browser Execution Flow

Agent Request
    ↓
┌─────────────────────────────────────────┐
│  Browser Service API                    │
│  - Parse browser action request         │
│  - Validate parameters                  │
│  - Allocate browser instance            │
└─────────────────────────────────────────┘
    ↓
┌─────────────────────────────────────────┐
│  Browser Instance                       │
│  - Navigate to URL                      │
│  - Execute JavaScript                   │
│  - Interact with page elements          │
│  - Extract content and data             │
└─────────────────────────────────────────┘
    ↓
┌─────────────────────────────────────────┐
│  Result Processing                      │
│  - Package extracted data               │
│  - Capture screenshots (if requested)   │
│  - Log execution details                │
│  - Return results to agent              │
└─────────────────────────────────────────┘

Security Architecture

  1. Session Isolation: Each browser session runs in isolated environment
  2. Network Security: Controlled outbound internet access
  3. Data Encryption: All data encrypted in transit and at rest
  4. Resource Limits: CPU, memory, and time limits per session
  5. Access Control: IAM-based authentication and authorization

Configuration

Basic Browser Session

# Configure browser service for agent
aws bedrock-agentcore-control configure-browser \
  --agent-id <AGENT_ID> \
  --session-timeout 600 \
  --viewport-width 1920 \
  --viewport-height 1080 \
  --region <REGION>

Advanced Configuration

# Set browser preferences and capabilities
aws bedrock-agentcore-control update-browser-config \
  --agent-id <AGENT_ID> \
  --browser-config '{
    "headless": true,
    "javascript": true,
    "images": true,
    "cookies": true,
    "userAgent": "CustomUserAgent/1.0",
    "timeout": 30000
  }' \
  --region <REGION>

Browser Actions

Navigation

// Navigate to URL
{
  "action": "navigate",
  "url": "https://example.com"
}

// Go back
{
  "action": "goBack"
}

// Refresh page
{
  "action": "reload"
}

Element Interaction

// Click element
{
  "action": "click",
  "selector": "#submit-button"
}

// Fill input field
{
  "action": "type",
  "selector": "#username",
  "text": "user@example.com"
}

// Select option
{
  "action": "select",
  "selector": "#country",
  "value": "US"
}

Content Extraction

// Extract text
{
  "action": "getText",
  "selector": ".article-content"
}

// Get element attribute
{
  "action": "getAttribute",
  "selector": "img.logo",
  "attribute": "src"
}

// Evaluate JavaScript
{
  "action": "evaluate",
  "script": "return document.title;"
}

Screenshots

// Full page screenshot
{
  "action": "screenshot",
  "fullPage": true
}

// Element screenshot
{
  "action": "screenshot",
  "selector": "#chart-container"
}

Best Practices

Performance Optimization

  • Use headless mode for non-visual operations
  • Disable unnecessary resources (images, stylesheets)
  • Set appropriate timeouts for page loads
  • Reuse browser sessions when possible
  • Implement exponential backoff for retries

Reliability

  • Handle network failures gracefully
  • Implement proper error handling
  • Use explicit waits for dynamic content
  • Verify element existence before interaction
  • Set reasonable timeout values

Security

  • Validate all URLs before navigation
  • Sanitize extracted data
  • Use secure credential storage
  • Implement rate limiting
  • Monitor for suspicious patterns

Cost Optimization

  • Close browser sessions when done
  • Use session pooling for frequent operations
  • Set appropriate resource limits
  • Monitor usage patterns
  • Implement caching where appropriate

Integration Patterns

With Memory Service

Browser ←→ Memory Service
- Store extracted data in memory
- Cache frequently accessed pages
- Share session state across agents

With Identity Service

Browser ←→ Identity Service
- Authenticate browser sessions
- Access credentials for protected sites
- Manage authentication tokens

With Code Interpreter

Browser ←→ Code Interpreter
- Process scraped data with code
- Transform extracted content
- Analyze website data

Troubleshooting

Common Issues

Page Load Timeout

  • Symptom: Page takes too long to load
  • Solution: Increase timeout or optimize target page

Element Not Found

  • Symptom: Cannot locate page element
  • Solution: Use explicit waits or verify selector

JavaScript Errors

  • Symptom: Page JavaScript fails
  • Solution: Check console logs, handle errors

Session Terminated

  • Symptom: Browser session unexpectedly ends
  • Solution: Check resource limits and session timeout

Authentication Required

  • Symptom: Cannot access protected pages
  • Solution: Configure credentials via Identity service

Monitoring

Key Metrics

  • Session Count: Number of active browser sessions
  • Success Rate: Percentage of successful operations
  • Page Load Time: Average time to load pages
  • Error Rate: Percentage of failed operations
  • Resource Usage: CPU and memory utilization

CloudWatch Integration

# Query browser metrics
aws cloudwatch get-metric-statistics \
  --namespace AWS/BedrockAgentCore/Browser \
  --metric-name SessionCount \
  --dimensions Name=AgentId,Value=<AGENT_ID> \
  --start-time <START> \
  --end-time <END> \
  --period 3600 \
  --statistics Average

Logging

# View browser execution logs
aws logs tail /aws/bedrock-agentcore/browser/<AGENT_ID> \
  --follow \
  --format short

Performance Considerations

Optimization Techniques

  1. Disable Unnecessary Resources: Turn off images/stylesheets when not needed
  2. Use Headless Mode: Faster execution without rendering overhead
  3. Implement Caching: Cache static resources and repeated queries
  4. Parallel Execution: Run multiple browser sessions concurrently
  5. Smart Waiting: Use explicit waits instead of fixed delays

Scaling Patterns

  • Horizontal Scaling: Launch multiple browser instances
  • Session Pooling: Reuse browser sessions for efficiency
  • Request Queuing: Queue browser operations during high load
  • Regional Distribution: Distribute load across AWS regions

Additional Resources


Related Services:

Source: SKILL.md on GitHub

1 alert16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill provides a comprehensive AWS Bedrock AgentCore orchestration guide with documentation, templates, and reference materials. No security issues, prompt injections, malicious dependencies, or obfuscation layers were detected.

  • Socket16d

    1 alert: gptAnomaly

  • Snyk16d

    Risk: MEDIUM · 1 issue

  • Runlayer6mo

    10/13 files flagged

Signed by skilld at e4ef2e2. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 6 months ago
What it can do
Network Runs commands
MCP servers
aws-mcpawsdocsacdocs
Modelsonnet
aliases
[
  "bedrock-agentcore"
]
context
fork
model
sonnet
All 12 allowed tools
mcp__aws-mcp__*mcp__awsdocs__*mcp__acdocs__search_agentcore_docsmcp__acdocs__fetch_agentcore_docBash(aws bedrock-agentcore *)Bash(aws bedrock-agentcore-control *)Bash(aws bedrock-agentcore-runtime *)Bash(aws bedrock *)Bash(aws s3 cp *)Bash(aws s3 ls *)Bash(aws secretsmanager *)Bash(aws sts get-caller-identity)
Other metadata
skills
[
  "aws-mcp-setup"
]
hooks
{
  "PreToolUse": [
    {
      "matcher": "Bash(aws bedrock-agentcore-control create-*)",
      "command": "aws sts get-caller-identity --query Account --output text",
      "once": true
    }
  ]
}

README badge

README badge for zxkane/aws-skills/aws-agentic-ai