Search Strands docs
search_docsSearch the official Strands Agents documentation, including user guides, API reference pages, and examples, to find relevant pages for a concept, feature, or API by keyword.
Instructions
Search the official Strands Agents docs: user guides, API reference pages, and examples.
Ranking uses page titles, URL paths, and catalog descriptions, plus a page's content once it has been fetched, so both title-like keywords and body terms work. The top results are fetched on demand to build snippets. Call fetch_doc with a result URL to read the page or one of its sections. If you already have a strandsagents.com URL, call fetch_doc directly instead of searching. When the question is phrased conversationally, pass alternate_queries with the terms the docs likely use instead of searching again.
Each result has url, title, snippet, and score. The score is an unbounded BM25 value, or a fused rank score when alternate_queries are given: higher is better within one result set; it is not a probability and is not comparable across queries. Returns an empty list when nothing matches. If a result page cannot be fetched, its title is used as the snippet.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Maximum number of results to return. | |
| query | Yes | Keywords for a Strands concept, feature, or API, e.g. "bedrock model", "MCP tools", "structured output", "guardrail". Prefer short keyword phrases over full conversational sentences. | |
| alternate_queries | No | Optional other phrasings of the same question in the words the docs likely use: feature names, API names, synonyms. For "stop the agent after 5 turns", pass ["turn limit", "max cycles", "lifecycle controls"]. Pages matched by several phrasings rank first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |