Amazon Bedrock AgentCore has added a direct Web Search API operation, allowing applications to retrieve web results with a single signed request instead of provisioning a gateway and target. Engineers building agents, pipelines, or any service that needs up‑to‑date web data can now call InvokeWebSearch directly from the AWS SDKs or CLI, using existing IAM credentials.
Why a Standalone API?
The existing AgentCore Gateway remains the recommended path for most agent workloads, but several scenarios benefit from a lower‑level entry point:
- Custom orchestration frameworks – Teams using LangChain, LlamaIndex, or home‑grown loops can invoke web search as a tool without routing through a gateway.
- Non‑agent workloads – Dashboards, fact‑checking pipelines, content enrichment jobs, and monitoring services can obtain real‑time results without deploying agent infrastructure.
- Control over request lifecycle – Direct calls let developers implement their own retry logic, caching strategies, and error handling.
- Simpler integration – Existing services with their own API layer can add web grounding by calling the API directly.
The API uses the same Amazon‑operated web index that powers Alexa+, Kiro, and Quick, preserving the quality and compliance posture of the broader Bedrock search stack.
How the InvokeWebSearch Call Works
The operation is exposed as InvokeWebSearch on the bedrock-agentcore data plane. A typical request follows these steps:
- Your code invokes
InvokeWebSearchvia an AWS SDK or the AWS CLI. The request is signed withSigV4using the caller’s IAM credentials. From a VPC, the call can traverse an interface VPC endpoint. - AWS IAM evaluates whether the identity has the
bedrock-agentcore:InvokeWebSearchpermission on the managed web search tool. - The service applies any request‑level filters, such as domain inclusion/exclusion or publication‑time windows.
- The query is executed against Amazon’s internal web index; the traffic never leaves AWS to a third‑party search engine.
- The response returns up to
maxResultsranked items, each containing a text extract and, when available, the page title, URL, and publication timestamp.
Architectural and Operational Implications
Adopting the direct API changes several aspects of system design:
- Resource footprint – No gateway or target resources need to be created, reducing provisioning overhead and associated cost considerations.
- IAM scoping – Access is controlled solely by the
bedrock-agentcore:InvokeWebSearchpermission. Teams should audit policies to ensure the principle of least privilege, especially when the API is exposed to multiple services. - Network topology – Calls can be routed through a VPC endpoint, keeping traffic within a private network and simplifying compliance with data‑in‑transit requirements.
- Observability – Since the gateway no longer mediates calls, logging and metrics must be captured at the client side or via CloudWatch integration for the
bedrock-agentcoreservice. - Error handling – Developers now own retry and back‑off logic. The API surface does not provide built‑in session management, so stateful orchestration must be implemented by the caller.
Related CloudNinjas coverage: AWS.
What This Means For Practitioners
Evaluate whether your workload truly needs the full AgentCore Gateway stack. If you are building custom agent loops, integrating with existing services, or require fine‑grained control over request handling, switch to the direct InvokeWebSearch call. Ensure IAM policies grant only bedrock-agentcore:InvokeWebSearch to the intended roles, and consider using a VPC endpoint to keep traffic private. Finally, instrument your client code for retries, latency tracking, and result validation, as the gateway’s automatic handling will no longer be present.

