search_docs
Search the Strands Agents documentation catalog for guides, API references, and examples, returning ranked results with snippets to locate relevant pages.
Instructions
Search the curated documentation catalog.
The catalog contains Strands Agents user guides, API reference pages, and examples. Ranking starts from document titles and also considers page content once a page has been fetched (hydrated), so both title-like keywords ("bedrock model", "MCP tools") and body terms ("guardrail", "temperature") work. The top results are fetched on demand to hydrate the index and provide content snippets.
Call fetch_doc with a result URL to read the page or one of its sections.
Args: query: Search query string (e.g., "bedrock model", "tell me about a2a", "how to use MCP tools") k: Maximum number of results to return (default: 5)
Returns: List of dictionaries containing: - url: Document URL - title: Display title - score: Unbounded weighted TF-IDF score. Higher is better within this result set; do not interpret it as a probability or compare it across different queries. - snippet: Contextual content preview
Returns an empty list when no document matches. If a result page
cannot be fetched, its title is used as the snippet.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |