Autocomplete a search query
data_search_suggestGet autocomplete suggestions for what someone has typed so far, in order: Wikipedia article titles that start with it (in the lang Wikipedia, default en) and, in English, Datamuse's completions. Search engines' own suggest lists are not read. Costs 1 credit. Every row has name (platform/collection/id), kind, its fields and source {platform, url, license, attribution, fetched_at, terms_url}; quote source.attribution when you show a row.
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": {
"q": "<q>"
},
"name": "data_search_suggest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | The words typed so far, such as "electric ca". | |
| lang | No | Optional Wikipedia language code, such as en, fr, de or vi (default en; Datamuse answers only in en). | |
| page_size | No | Suggestions to return, 1 to 50 (default 10). |