Search the FastAPI docs
search_docsFinds relevant FastAPI documentation passages for a question or keywords and returns ranked results, helping users locate answers and supporting citations.
Instructions
Find the most relevant passages in the FastAPI documentation for a question.
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 | How many passages to return | |
| query | Yes | A question or keywords, e.g. 'how to upload files' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hits | Yes | ||
| query | Yes | ||
| retriever | Yes |