搜索书籍
search_booksSearch WeChat Reading's bookstore by keyword to locate books and obtain their book IDs, enabling follow-up actions like fetching details or highlights.
Instructions
在微信读书书城搜索(/store/search)。
用户说书名时先用本工具拿 bookId,再调用其它工具。
注意:请求参数 `scope` 和回包 `results[].scope` 不是一回事——请求 `scope=10` 时
电子书分组回包可能是 `scope=17`,**不要**用 `results[].scope == 10` 过滤结果;
标题为「电子书」或含 `books` 的分组都可以展示。
翻页:`hasMore=1` 时,用最后一条的 `searchIdx` 作为下一次的 `max_idx`。
搜索结果只是分页片段,表述用「为您找到」,不要说「共有/一共/总共」。
空结果时回复:抱歉,没有找到与「{keyword}」相关的结果。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | 每页数量。用户没有指定数量时不要传(服务端默认 15)。 | |
| scope | No | 搜索类型,必须显式传:0=全部(泛搜索),10=电子书(明确找书/要 bookId),16=网文小说,14=微信听书/有声书/专辑/播客,6=作者,12=全文,13=书单,2=公众号,4=文章。 | |
| keyword | Yes | 搜索关键词。需要先去掉「帮我 / 搜一下 / 有没有」等口语化前后缀,只保留核心检索词;同时给出书名和作者时用区分度更高的词。 | |
| max_idx | No | 翻页偏移:取上一页最后一条的 searchIdx。首页不传。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||