Search Suggestions
search_suggestionsAutocomplete suggestions a search box shows for a partial query, from Google, DuckDuckGo, YouTube or Amazon (engine "bing" is accepted but Bing currently refuses our servers and fails with an upstream_down error naming Bing). Returns the ordered suggestion strings (suggestions) and, beside them, one object per suggestion with its position, completion suffix and word count (suggestion_details), plus the engine used, a cached flag and took_ms. Language and country steer Google and Amazon; DuckDuckGo and YouTube honour language only. Use it to see what people are typing next to a keyword.
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": {
"lang": "en",
"query": "how to learn",
"engine": "google",
"country": "us"
},
"name": "search_suggestions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language code, e.g. "en", "de" (default "en") | |
| query | Yes | Partial query text, e.g. "how to" | |
| engine | No | Which engine (default "google") | |
| country | No | Two-letter country code, e.g. "us", "gb" (default "us") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| note | No | ||
| count | No | ||
| query | No | ||
| cached | No | False: this pack always calls the engine live and keeps no cache of its own | |
| engine | No | ||
| source | No | ||
| country | No | ||
| took_ms | No | Milliseconds the upstream call took inside the pack | |
| suggestions | No | Suggestion strings in engine order | |
| not_provided | No | Datacircle-style fields the engines do not give us | |
| suggestion_details | No | One object per suggestion, same order as suggestions |