Tencent / Tencent/WeChatReading
功能请求:支持通过 Agent API 上传/导入本地文件到书架
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 233
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
背景
当前 weread-skills(v1.0.4)的书架能力仅提供 /shelf/sync 只读同步,可以查看电子书、有声书/专辑、文章收藏等条目,但无法通过 Agent 将本地文件导入到用户书架。
文档中 books[] 已提及「导入书」可能出现在书架中,说明微信读书产品侧本身支持导入;但 Agent API Gateway 尚未暴露对应写入能力。
诉求
希望增加「上传/导入本地文件到书架」相关接口(或在现有 gateway 中开放),例如支持:
- 上传常见电子书格式(至少 epub / pdf / txt / mobi 等产品已支持的格式)
- 导入成功后返回
bookId,并可在后续/shelf/sync中看到 - 明确错误码与限制(文件大小、格式、配额等)
使用场景
在 Cursor / Claude 等 Agent 环境中,用户可能已有本地文稿、导出的电子书,希望直接说「把这个文件加到我的微信读书书架」,而无需切回 App 手动导入。
当前能力对照
| 已有 | 缺失 |
|---|---|
/shelf/sync 查看书架 |
上传/导入文件到书架 |
/store/search 搜书城书 |
将本地文件变成书架可读条目 |
期望
若短期内不能开放上传,也希望在 skill 文档中明确标注「书架为只读、不支持导入」,并说明推荐的客户端导入路径,避免用户误以为 Agent 可完成该操作。
感谢考虑!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing /shelf/sync and /store/search gateway entry points and the skill documentation describing shelf behavior. Define the upload/import flow, supported formats, limits, error responses, and returned bookId, then verify imported items appear through /shelf/sync; if upload is not feasible, document the read-only limitation and client import path.
Written by the indexing model from the issue text.
Assessment
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100