search
Search for items within a crate's documentation, or — without a crate — discover which crate to use.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"crate": "serde",
"query": "deserialize",
"description": "Find deserialization items in serde"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crate | No | Crate to search within, optionally with an `@`-suffixed semver requirement (not an exact version): `serde`, `tokio@1` (newest 1.x), or `tokio@=1.40` to pin an exact release. **Omit only to discover which crate to use.** With `crate`, the search runs over that crate's full documentation — item names and prose. Without it, it searches a different, much shallower dataset: crates.io crate names, descriptions, and declared keywords. It returns crates, not items, and cannot see any crate's actual documentation. If you already know the crate name, always pass it. | |
| query | Yes | Search query — one or more complete words. With `crate`, matched against item names and documentation prose; without it, against crate names, descriptions, and declared keywords. |