Gmail 插件希望支持标记已读等 modify_labels 操作
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**提交人**: 徐占鑫
**客户端版本**: 0.1.55
---
## 使用场景
用户通过 Gmail 插件搜索未读邮件后,希望把确认过的邮件标记为已读,最好能对搜索结果批量处理。
## 当前痛点
- `gmail` 工具已暴露 `modify_labels` action,但调用后返回:
- errorCode: `INTERNAL`
- message: `Insufficient permissions. Please wait for a future plugin update.`
- 插件工具说明中也标注 `modify_labels` 暂不可用并返回权限不足。
- 实测 `gmail_accounts` 显示账号状态为 connected,`search is:unread` 可正常返回结果,说明基础 Gmail 授权可用,但缺少修改标签所需权限。
## 诉求
希望 Gmail 插件补充并开放修改标签权限,支持至少:
- 移除 `UNREAD` 标签(标记已读)
- 添加 `UNREAD` 标签(标记未读)
- 如可行,支持批量操作或按 Gmail 搜索结果处理
## 建议方案
在 Gmail OAuth 授权中补充 Gmail 修改标签所需 scope,并保持现有 search/read/send/draft 能力不变;若需要用户重新授权,请在插件详情页给出明确提示。
## 已尝试
- 对一封搜索到的未读邮件调用 `modify_labels` 并移除 `UNREAD`,稳定返回权限不足。
- 检查 `gmail_accounts`,账号连接状态正常。
- 未尝试重新授权或重启客户端。
---
**OS**: darwin arm64 (25.4.0)
**界面语言**: zh-CN
Contributor guide
Research direction
Trace the Gmail plugin's OAuth authorization and the existing gmail tool's modify_labels permission handling, using gmail_accounts and the documented search/read/send/draft capabilities as comparison points. Done means the required label-modification scope is requested, existing capabilities remain available, and users receive a clear reauthorization prompt when needed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, authentication
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100