get_fastapi_example
Retrieve code examples for a specified FastAPI topic, such as CORS, JWT, or WebSockets, to implement features directly.
Instructions
Get code examples (no prose) for a FastAPI topic.
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": {
"topic": "<topic>"
},
"name": "get_fastapi_example"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | Topic to fetch examples for, e.g. "cors", "jwt", or "websockets". |