Summary
企业微信待办列表查询技能,支持按创建时间和提醒时间过滤,支持分页。在用户说"看看我的待办列表"、"我有哪些待办"、"这周的待办有哪些"、"最近有什么待办"、"查一下我的待办"、"列出所有待办"等需要浏览待办概览的场景时使用。注意:此技能仅返回待办概要信息(不含内容和分派人),如需完整详情请配合…
stvlynn/qclaw-skills · Archived
企业微信?
npx skills add stvlynn/qclaw-skills --skill wecom-get-todo-list
企业微信待办列表查询技能,支持按创建时间和提醒时间过滤,支持分页。在用户说"看看我的待办列表"、"我有哪些待办"、"这周的待办有哪些"、"最近有什么待办"、"查一下我的待办"、"列出所有待办"等需要浏览待办概览的场景时使用。注意:此技能仅返回待办概要信息(不含内容和分派人),如需完整详情请配合…
This repository is archived — consider an actively maintained alternative.
[SYSTEM RULES - MANDATORY - ALWAYS LOAD - DO NOT SKIP] QClaw系统基础运行规则,强制加载,不可卸…
7 installsHolistic nutrition guidance — food-health relationships, eating behaviors, sustainable habits, …
6 installs?
5 installs[MANDATORY] 本环境没有? 定时任务、模型设置、Skills/Plugins 管理等)都? 禁止直接调用 `openclaw` …
5 installsRelated neighbors and high-traction skills in the same topics — useful to compare before installing.
企微 doc ?
20.3K installs管理企业微信?
20.1K installs使用 wecom-cli 按姓名、拼音、英文名或别名搜索企业微信通讯录中的人员,并查询匹?
20.1K installs企业微信会议管理。本技能负责『在线会议』——即含在线会议链接(含会议号/?
20K installsOther skills from stvlynn/qclaw-skills · top by installs.
npx skills add stvlynn/qclaw-skills
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Alternate registries and mirrors of this skill.
npx skills add https://github.com/wecomteam/wecom-openclaw-plugin
main
Files included with this skill beyond the listing page.
SKILL.md
7,127 B
SUMMARY.md
476 B
wecom_mcp是一个 MCP tool,所有操作通过调用该 tool 完成。
⚠️ 前置条件:首次调用
wecom_mcp前,必须按wecom-preflight技能执行前置条件检查,确保工具已加入白名单。
通过 wecom_mcp tool 查询企业微信待办列表,支持按时间过滤和分页。
查完列表必须查详情: 本接口只返回待办 ID 和状态等概要信息,不包含待办的实际内容和分派人。对用户来说,没有内容的待办列表毫无用处——他们想知道的是"要做什么",而不是一串 ID。因此,每次调用 gettodolist 拿到结果后,都要紧接着用返回的 todo_id 列表调用 wecom-get-todo-detail 获取完整详情(内容、分派人等),然后再向用户展示。这不是可选步骤,而是完成用户请求的必要环节。
分页未拉完时必须提醒用户: 接口是分页的,不要求一次性拉完所有数据。但如果响应中 has_more 为 true,说明后面还有待办没有返回——这时你在展示当前结果的同时,必须明确告诉用户"还有更多待办未显示,是否需要继续查看?"。用户可能不知道后面还有数据,如果你不说,他们会以为看到的就是全部,这会导致遗漏重要待办。这是一个容易被忽略但后果严重的点,请务必执行。
重试策略: 遭遇"返回 HTTP 错误"或"HTTP 请求失败"时,主动重试,最多重试三次。
使用 wecommcp tool 调用 wecommcp call todo gettodolist '<json格式的入参>'
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
createbegintime |
string | ❌ | 创建开始时间,格式:YYYY-MM-DD HH:mm:ss |
createendtime |
string | ❌ | 创建结束时间,格式:YYYY-MM-DD HH:mm:ss |
remindbegintime |
string | ❌ | 提醒开始时间,格式:YYYY-MM-DD HH:mm:ss |
remindendtime |
string | ❌ | 提醒结束时间,格式:YYYY-MM-DD HH:mm:ss |
limit |
number | ❌ | 最大返回数量,默认 10,最大 20 |
cursor |
string | ❌ | 分页游标,首次请求不传,后续传入上次响应的 next_cursor |
{
"errcode": 0,
"errmsg": "ok",
"index_list": [
{
"todo_id": "TODO_ID",
"todo_status": 1,
"user_status": 1,
"creator_id": "CREATOR_ID",
"remind_time": "2025-06-01 09:00:00",
"create_time": "2025-01-15 10:30:00",
"update_time": "2025-01-16 14:20:00"
}
],
"next_cursor": "NEXT_CURSOR",
"has_more": false
}
| 字段 | 类型 | 说明 |
|---|---|---|
index_list |
array | 待办列表 |
indexlist[].todoid |
string | 待办唯一 ID |
indexlist[].todostatus |
number | 待办状态:0-已完成,1-进行中,2-已删除 |
indexlist[].userstatus |
number | 用户状态:0-拒绝,1-接受,2-已完成 |
indexlist[].creatorid |
string | 创建人 ID |
indexlist[].remindtime |
string | 提醒时间 |
indexlist[].createtime |
string | 创建时间 |
indexlist[].updatetime |
string | 更新时间 |
next_cursor |
string | 下一页游标 |
has_more |
boolean | 是否还有更多记录 |
列表返回的是待办概要信息(不含内容和分派人)。拿到列表后,必须调用
wecom-get-todo-detail获取完整详情再展示给用户。
用户问:"看看我最近的待办" / "我有哪些待办事项?" / "我还有多少事要做?"
wecommcp tool 调用 wecommcp call todo gettodolist '{}'wecommcp tool 调用 wecommcp call todo gettododetail '{"todoidlist": ["返回的TODOID1", "返回的TODOID_2"]}'两步缺一不可——只有拿到详情后,才能向用户展示有意义的待办内容。
has_more 字段。如果为 true,在展示结果时必须提醒用户:"以上是部分待办,还有更多待办未显示,需要我继续查看吗?"——不提醒的话,用户会以为这就是全部。用户问:"这个月创建的待办有哪些?"
使用 wecommcp tool 调用 wecommcp call todo gettodolist '{"createbegintime": "2025-03-01 00:00:00", "createendtime": "2025-03-31 23:59:59"}'
当待办数量超过单页上限时,通过 cursor 循环分页拉取:
wecommcp tool 调用 wecommcp call todo gettodolist '{"limit": 20}',如果没有拉取完,还有更多的待办,会返回 hasmore=true, nextcursor="CURSOR_1"wecommcp tool 调用 wecommcp call todo gettodolist '{"limit": 20, "cursor": "CURSOR1"}',返回 has_more=false,拉取完毕分页规则:
cursorhasmore 为 true 时,将 nextcursor 作为下次请求的 cursor 传入has_more 为 false 时停止请求YYYY-MM-DD HH:mm:ss 格式,用户说"明天"、"下周一"等相对时间时,根据当前日期推算具体日期- 待办状态(todostatus):0-已完成,1-进行中,2-已删除 - 用户状态(userstatus):0-拒绝,1-接受,2-已完成
errcode 不为 0,告知用户 errmsg 中的错误信息wecom-get-todo-detail 获取完整内容再展示给用户,不要只展示列表概要has_more 为 true,在向用户展示结果时必须明确说明"还有更多待办未显示"并询问用户是否需要继续查看。用户不知道后面还有数据,不提醒会导致遗漏