Amazon Bedrock AgentCore Web Search API: What Changed for C# Teams

On November 10, 2026, AWS made the Amazon Bedrock AgentCore Web Search API generally available. An application can call InvokeWebSearch directly to get ranked web results, with optional domain and publication-time filters. That gives an ASP.NET Core service, a custom agent loop, or a scheduled research job a way to retrieve current web evidence without first creating an AgentCore Gateway.

A magnifying lens over a globe reveals web results connected to a cloud service

The distinction matters when the application already knows when to search. An internal release tracker can make one bounded lookup for official product announcements, store the returned links, and let a separate step summarize them. A general-purpose MCP client has a different job. It may need to discover multiple tools through a gateway and let the agent decide when to invoke them. AWS continues to document both routes. AWS announcement · AgentCore developer guide

What does AgentCore Web Search return?

AgentCore is AWS infrastructure for building and operating agents and their tools. Web Search queries an Amazon-operated index and returns ranked records with a text extract and, when available, a page title, URL and publication time. The caller decides whether to show the records to a person, pass them to a model, or discard them. Plan for missing metadata, empty result sets and snippets that lack enough context to substantiate a claim.

A publication-time filter narrows the index results. It cannot establish when a fact first became true. For example, an article updated today can describe an older launch, and a short extract may leave out a regional limitation. A release-monitoring service should prefer first-party sources, check the linked page, and record the date it independently found there. API request and response

MCP client to Gateway target to ranked results. Application to direct API with IAM to ranked results.
Two paths to AgentCore Web Search.

How does the direct API compare with Gateway and MCP?

Area Gateway Web Search Tool Direct Web Search API
Who calls it MCP client discovers and invokes a tool through a gateway Application code invokes the AgentCore data plane
Setup Configure a gateway and its Web Search Tool target No gateway or search resource to create
Authorization Gateway can also authorize callers using JWT IAM authorizes the request
Domain controls Request filters and optional target-level lists Caller supplies request-level filters
Defaults Up to 10 results Up to 25 results
Date boundaries A date-only end value includes the whole day Date-only end values supplied through SDK or CLI resolve to midnight UTC
Cost Search queries are charged, plus applicable Gateway charges Same search query rate, with no Gateway charge for this call
Compatibility Connector also supports AWS GovCloud (US-West) Direct API has six commercial Regions at launch

Fewer resources make the direct path easier to provision for a single service. AWS did not publish a measured latency comparison in the announcement. If latency matters, compare the same query and result limit in the same Region, and record the distribution over repeated calls instead of extrapolating from one request. AWS developer guide

How can a C# team try the API?

Start with a current AWS CLI v2 build. Confirm aws bedrock-agentcore invoke-web-search help is available. Use a development role with bedrock-agentcore:InvokeWebSearch permission on arn:aws:bedrock-agentcore:us-east-1:aws:tool/web-search.v1 for this example. The account segment for this AWS-managed tool is literally aws. Select a supported Region and run the following documented command shape. This example was checked against the command reference and was not executed against an AWS account.

aws bedrock-agentcore invoke-web-search \
  --region us-east-1 \
  --web-search-id web-search.v1 \
  --search-query "AWS Athena system tables query execution" \
  --max-results 5 \
  --filters '{"domainFilter":{"include":["aws.amazon.com","docs.aws.amazon.com"]}}'

Expect a ranked result collection, or an empty collection when the restrictions exclude everything. Search text can contain 1–200 characters, and maxResults supports 1–25. A caller that moves the date filter from the MCP tool should convert its endpoints to explicit UTC instants. An inclusive upper bound at midnight will omit results published later that day. The CLI reference documents the full time filter and output shape.

The product announcement confirms AWS SDK access. This article uses the documented CLI because a .NET-specific operation signature was not independently verified. For a .NET design, define an application-level search interface that takes a query, an optional domain policy and a cancellation token. Keep credential resolution inside its AWS adapter and project the response into a small source record. Pass the URLs and extracts as data to the summarizer. That keeps ranking and source review separable from model invocation and lets you test the agent with a fake adapter. For a related architecture, see building an AI agent in ASP.NET Core.

What should platform teams check before rollout?

At launch, AWS lists N. Virginia, Ohio, Oregon, Sydney, Tokyo and Ireland. The default quota is 10 requests per second per account per Region. A shared budget is important when several workers run at once. Bound the query count per user request and use delayed retries for transient errors and throttling. A retry after a timeout can make another billable search. Handle access-denied and validation failures by fixing configuration or input first.

AWS lists a launch rate of US$7 per 1,000 search queries. Budget model inference separately, along with any networking or logging costs you opt into. PrivateLink can provide private access to the AWS service endpoint, and CloudTrail data events can record requests when configured. Treat extracts as untrusted input, including those on allowed domains. Never let a snippet expand an agent’s permissions, dictate another tool call, or authorize an external fetch. Keep raw search text out of application logs when it might contain sensitive data. AgentCore pricing · AgentCore developer guide

What would a low-risk release-monitoring pilot look like?

Start with a fixed set of product names and one query per product, using a domain allowlist controlled by the service rather than by the model. A reviewer should be able to open the source URL and reproduce the date and feature scope without reading the model’s entire prompt. Store the exact result URL and the verification outcome. If a second worker handles summarization, carry these fields forward and reject any summary that refers to an unknown source identifier.

Measure the number of searches per successful verified item, the rate of empty filtered results, and how often a reviewer rejects a proposed citation. Those measures tell you whether the retrieved sources help the actual task. A faster API call has little value if reviewers still have to search manually for the correct announcement. Keep the gateway route in the test when comparing an existing deployment.

Frequently asked questions

Does this replace AgentCore Gateway?

No. The API fits applications that already control their search step. Gateway still fits MCP tool discovery, shared target-level configuration and the connector’s GovCloud use case.

Does it write the final answer?

The operation returns search results. Your application decides how to verify, cite, summarize or present them. A domain list helps narrow evidence but does not guarantee truth or freshness.

Which integration should a team evaluate first?

Use the direct API for a dedicated lookup endpoint or batch job. Keep Gateway when it already gives multiple agents a shared tool catalog and centrally configured search targets.

Comments