Saturday, June 20, 2026

Introducing Net Search on Amazon Bedrock AgentCore


AI brokers are altering how organizations discover and act on data, however they share one structural limitation: their information is frozen at coaching time. If you ask an agent that depends solely on its coaching knowledge about as we speak’s inventory worth, a sports activities rating, or a launch that shipped an hour in the past, it may’t reply.

Net Search on Amazon Bedrock AgentCore, now usually obtainable, addresses that hole. This totally managed, Mannequin Context Protocol (MCP)-compatible net search functionality lets your brokers get data from the online with out infrastructure overhead. It’s obtainable as a managed goal or connector that you just connect with your AgentCore Gateway. Brokers uncover it with a typical instruments/checklist name and invoke it like different MCP instruments. There are not any search APIs to provision, no outbound credentials to handle, and no result-parsing glue to keep up.

Behind that single connector sits a purpose-built net index maintained by Amazon, spanning tens of billions of paperwork. Amazon refreshes the index frequently, reflecting new content material inside minutes. The privateness mannequin makes positive that queries don’t depart AWS. Retrieval can mix a information graph with semantic snippet extraction tuned for mannequin context.

On this submit, we stroll by way of what makes Net Search on Amazon Bedrock AgentCore completely different, why it issues, and how one can wire it in with just a few strains of code.

Determine 1: Your utility connects to the AgentCore Gateway (AWS Id and Entry Administration (IAM) or JSON Net Token (JWT) inbound auth), which routes queries by way of a managed connector to the Net Search software within the AWS service account. Question visitors stays inside AWS.

Grounding brokers within the net is the repair for stale information, nevertheless it’s additionally the place many groups get caught. Constructing it your self means:

  • Procuring a third-party search API and managing keys, quotas, and price limits.
  • Parsing inconsistent consequence codecs throughout suppliers.
  • Reasoning about the place buyer queries journey and the way that knowledge is likely to be retained or reused.
  • Constructing snippet extraction logic, so fashions get related passages, not uncooked HTML.
  • Sustaining freshness, protection, and high quality over time.

Every of those is a venture in itself. Net Search on Amazon Bedrock AgentCore addresses all of them.

A purpose-built net index

Many “add net search to your agent” options are wrappers round a third-party search engine. Net Search on Amazon Bedrock AgentCore is backed by an internet index that Amazon operates instantly, spanning tens of billions of paperwork. That scale issues for protection. For instance, the long-tail query a few area of interest library or an obscure product spec will be answered extra successfully when the index is broad slightly than restricted to the most well-liked pages.

Up to date frequently

Amazon refreshes the index on an ongoing foundation, reflecting new content material inside minutes. For brokers that reply to questions on worth actions or lately revealed bulletins, that recency window is the distinction between a grounded response and a confidently incorrect one. When your agent searches for “what occurred as we speak,” the outcomes replicate what truly occurred as we speak.

Data graph for high-confidence information

Net Search on Amazon Bedrock AgentCore features a built-in information graph that grounds entities and their relationships. For factual questions (like who holds a job or when one thing was based), the information graph offers high-confidence responses slightly than leaving the mannequin to deduce them from extracted web page textual content. This reduces the sort of delicate factual drift that creeps in when an agent stitches collectively a response from snippets alone.

Slightly than handing the mannequin a uncooked HTML dump or a full web page and hoping it finds the related half, the software performs semantically related snippet extraction. It pulls the passages from every net web page that bear on the question, then returns them in a kind optimized for a mannequin’s context window. The mannequin sees the components that matter, with fewer tokens spent on boilerplate and navigation chrome. This may also help enhance the precision of cited responses.

Non-public by design

For a lot of enterprises, the query that stalls an internet search rollout isn’t “does it work.” It’s “the place do my customers’ queries go, and what occurs to them?” Net Search on Amazon Bedrock AgentCore is constructed so the solutions to these questions are easy.

Queries don’t depart AWS

When your agent points a search, the question is served fully inside AWS infrastructure. Buyer queries don’t get despatched to a third-party search engine or depart AWS. The Gateway authenticates to the connector owned by AWS and routes the request internally, so the information path stays inside AWS finish to finish. For groups with data-residency or third-party egress considerations, this removes a whole class of assessment.

Walkthrough

To get began with the Net Search Instrument, you create an AgentCore Gateway (when you don’t need to use an present one), add the online search software goal, and invoke it from an agent utilizing MCP.

Stipulations

To comply with together with the setup steps on this submit, you want the next:

  • An AWS account with permissions to create IAM roles and Amazon Bedrock AgentCore sources.
  • The AWS Command Line Interface (AWS CLI) v2 put in and configured, or entry to the AWS Administration Console.
  • Python 3.10 or later (for the SDK and Strands examples).
  • The boto3 SDK up to date to the newest model.
  • An Amazon Bedrock AgentCore Gateway. You may add the Net Search Instrument as a goal to an present Gateway, or create a brand new one. For directions on making a Gateway, see Create an Amazon Bedrock AgentCore gateway within the Developer Information.

Observe: Following these steps creates AWS sources that incur expenses. The Amazon Bedrock AgentCore Gateway and Net Search invocations are billable. See the Pricing part that follows for particulars, and bear in mind to wash up sources when completed to keep away from ongoing expenses.

Setup

Including net search to an agent comes all the way down to attaching a Net Search Instrument goal to your Gateway utilizing connectorId: "web-search". The Gateway snapshots the software schema, provisions the combination, and handles schema administration, parameter governance, endpoint decision, and repair authentication for you.

import boto3

gateway_client = boto3.consumer("bedrock-agentcore-control", region_name="us-east-1")

# Add the Net Search Instrument as a goal on an present Gateway
gateway_client.create_gateway_target(
    gatewayIdentifier=gateway_id,  # your present or newly created Gateway ID
    identify="web-search-tool",
    targetConfiguration={
        "mcp": {
            "connector": {
                "supply": {"connectorId": "web-search"},
                "configurations": [{"name": "WebSearch", "parameterValues": {}}],
            }
        }
    },
    credentialProviderConfigurations=[
        {"credentialProviderType": "GATEWAY_IAM_ROLE"}
    ],
)

Confirm that you just added the goal by calling describe_gateway_target or list_gateway_targets and confirming that Net Search-tool seems within the response.

The outbound position and permissions

Discover the previous credentialProviderConfigurations. That is the entire outbound-authorization story: as an alternative of you provisioning API keys or managing search credentials, the Gateway authenticates to the Net Search backend utilizing its personal IAM service position.

That position wants a belief coverage (so AgentCore can assume it, scoped to your account and Area) and a permissions coverage with two actions:

{
  "Model": "2012-10-17",
  "Assertion": [
    {
      "Sid": "InvokeGateway",
      "Effect": "Allow",
      "Action": "bedrock-agentcore:InvokeGateway",
      "Resource": "arn:aws:bedrock-agentcore:us-east-1::gateway/"
    },
    {
      "Sid": "InvokeWebSearch",
      "Effect": "Allow",
      "Action": "bedrock-agentcore:InvokeWebSearch",
      "Resource": "arn:aws:bedrock-agentcore:us-east-1:aws:tool/web-search.v1"
    }
  ]
}

The InvokeWebSearch useful resource ARN is owned by AWS (account = aws). Authorization is enforced per invocation towards that ARN, so granting bedrock-agentcore:InvokeWebSearch on it’s what lets the Gateway name net search in your behalf.

A few boundaries to maintain clear:

  • This position is for outbound auth solely (Gateway reaching the Net Search backend). Inbound auth (who can name your Gateway) is dealt with individually, sometimes with an OAuth or JWT authorizer reminiscent of Amazon Cognito.
  • The position doesn’t embody bedrock:InvokeModel. Mannequin entry belongs to no matter id runs your agent, to not the Gateway service position.

Invoking from MCP-compatible frameworks

As a result of Net Search is uncovered over MCP, an MCP-compatible framework like Strands, LangChain, LangGraph, CrewAI, or your individual can uncover and invoke it. The agent calls instruments/checklist, finds WebSearchTool, and makes use of it mechanically every time it wants present data:

from datetime import date
from strands import Agent
from strands.fashions.bedrock import BedrockModel
from strands.instruments.mcp import MCPClient
from mcp_proxy_for_aws.consumer import aws_iam_streamablehttp_client

gateway_url = "https://gateway-.gateway.bedrock-agentcore.us-east-1.amazonaws.com/mcp"

mcp_client = MCPClient(lambda: aws_iam_streamablehttp_client(
    endpoint=gateway_url,
    aws_region="us-east-1",
    aws_service="bedrock-agentcore",
))

mannequin = BedrockModel(model_id="us.anthropic.claude-sonnet-4-6")

system_prompt = (
    f"You're a useful assistant. At the moment's date is {date.as we speak().isoformat()}. "
    "Use the obtainable instruments once you want present data."
)

with mcp_client:
    instruments = mcp_client.list_tools_sync()  # WebSearch software found from the Gateway
    agent = Agent(mannequin=mannequin, instruments=instruments, system_prompt=system_prompt)

    consequence = agent("What are the newest AI breakthroughs introduced this week?")
    print(consequence)

The agent determines it wants contemporary data, invokes WebSearchTool with an applicable question, and composes a grounded response with supply citations. No tool-specific code in your aspect.

Response format

Outcomes come again in the usual MCP instruments/name envelope. The software returns a single content material block of sort textual content that comprises a serialized JSON doc with the outcomes. Parse that internal textual content and also you get an id plus a outcomes array of observations:

{
  "publishedDate": "04:43AM, Wednesday, June 17 2026, PDT",
  "textual content": "The 2026 NBA Finals was the championship...",
  "title": "2026 NBA Finals",
  "url": "https://en.wikipedia.org/wiki/2026_NBA_Finals"
}

Every net index remark (all the time returned) carries title, url, publishedDate, and textual content. Data-graph observations (non-compulsory, for entity queries) have null title and url plus structured key/worth information within the textual content subject.

If it’s good to floor an agent in your individual enterprise knowledge, Amazon Bedrock Data Bases and Amazon Bedrock Managed Data Bases are the precise instruments. They ingest, index, and retrieve over content material you personal. The Net Search Instrument is the complement. It grounds brokers within the public net, for questions whose responses reside exterior your group and alter by the minute. Many manufacturing brokers use each: a information base for “what do our paperwork say” and net seek for “what’s true on the earth proper now.”

Pricing

At $7 per 1,000 queries, you’ll be able to run a web-search agent for lower than a cent per query with a pay-as-you-go mannequin.

Clear up sources

Should you created sources whereas following alongside, you’ll be able to take away them to keep away from ongoing expenses:

  1. Delete the Gateway goal: name delete_gateway_target together with your gatewayIdentifier and targetId.
  2. If the Gateway was created solely for this walkthrough, delete it with delete_gateway.

There isn’t a persistent infrastructure on the AWS aspect past these sources. After they’re eliminated, you cease incurring expenses.

Conclusion

The Amazon Bedrock AgentCore Net Search Instrument provides your brokers present net information by way of a single connectorId. There are not any search APIs to provision and no result-parsing to keep up. Beneath that simplicity is an internet index that AWS builds itself (tens of billions of paperwork, refreshed inside minutes), a privateness mannequin the place queries don’t depart AWS, and retrieval that may mix a information graph with semantic snippet extraction tuned for mannequin context. The result’s an agent that responds to well timed questions precisely, cites its sources, and retains your knowledge the place it belongs.

As a result of Amazon operates the total search stack, enhancements to freshness, protection, relevance, and snippet high quality circulation to your brokers mechanically by way of the identical managed connector. No model upgrades or migrations are wanted in your aspect.

You may entry the Net Search Instrument connector as we speak in us-east-1 (US East (N. Virginia)).

To get began, see the Net Search Instrument documentation.


Concerning the authors

Veda Raman

Veda Raman

Veda Raman is a Principal Specialist Options Architect for GenAI and machine studying primarily based in Maryland. She has broad expertise in architecting and constructing AgenticAI purposes and helps clients apply greatest practices in constructing value environment friendly and strong AgenticAI purposes.

Kalyan Garimella

Kalyan Garimella

Kalyan Garimella is a Principal Product Supervisor at Amazon AGI, with over 15 years of experience constructing enterprise and client purposes. He leads the event and launch of net search capabilities for Amazon Bedrock AgentCore, tackling a core limitation of recent AI brokers: their incapability to entry real-time, factual data past their coaching knowledge, which ends up in outdated responses and hallucinations. By enabling brokers to retrieve and floor their reasoning in reside net knowledge, Kalyan’s work instantly improves the reliability and accuracy of enterprise AI brokers at scale. Over his six years at Amazon, he has led initiatives throughout AWS, Amazon Music, and AGI, and beforehand held management roles at Deloitte, the place he drove enterprise digital transformation by way of large-scale Good IoT initiatives. Kalyan lives within the Bay Space along with his household.

Related Articles

Latest Articles