xhs_search_suggestions
Retrieve Xiaohongshu search suggestions for a keyword to complete typing; then use note or product search for actual results.
Instructions
根据搜索词获取小红书候选搜索建议,用于补全搜索词;需要实际搜索笔记或商品时,分别使用 xhs_search_notes 或 xhs_search_products。
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": {
"keyword": "<keyword>"
},
"name": "xhs_search_suggestions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyword | Yes | 搜索词,可传正在输入的关键词或短语;不要传笔记链接、主页链接、note_id、user_id 或分页令牌。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | 搜索建议条目列表 | |
| points | Yes | 本次成功调用的积分消耗与调用完成时的账户积分余额。 |