我的书架
get_shelfRetrieve the current user's WeRead bookshelf with complete totals: books, albums, private reading counts, and e-book count—precomputed for immediate use.
Instructions
获取当前用户书架(/shelf/sync,无参数,身份由 API Key 决定)。
数量口径(**强制**):
- 书架条目总数 = `books.length + albums.length + (mp 非空 ? 1 : 0)`;
`albums[]` 是专辑/有声书,在书架里同样按「书」管理,必须计入总数,
不能用「另外还有」把专辑或文章收藏排除在总数之外。
- 「电子书数」才用 `bookCount` / `books.length`。
- 私密阅读数 = `books[].secret==1` + `albums[].albumInfoExtra.secret==1` + (`mp` 非空 ? 1 : 0)。
- 不要遍历 `books` 逐个调 `get_book_info` 去判断有声书,直接用 `albums`。
本服务端已按上述公式把结果算好放在 `_computed` 字段里,直接引用即可。
失败时回复:书架信息暂时没拉到,请稍后再试~
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||