how_do_i
Quickly retrieve the top 1-2 code snippets for any task with a specific library, including gotchas, to avoid reading entire documentation.
Instructions
Return the 1-2 best code snippets for a task with a library, plus the gotcha for each. Snippets are correct for the indexed version. Far cheaper in tokens than a docs dump.
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": {
"library": "<library>",
"task": "<task>"
},
"name": "how_do_i"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | What you want to do, e.g. "retry a failed request" | |
| library | Yes | Library name as published on npm or PyPI |