Loading...
Loading...
Skill for batch querying WeCom to-do details, which obtains complete information (including to-do content and assignees) based on the to-do ID list. It is used in scenarios where users need to view the full content of to-dos, such as when users say "Check the details of this to-do", "What is the content of this to-do", "Who is this to-do assigned to", "Tell me the specific information of the to-do", etc. It is usually used in conjunction with wecomcli-get-todo-list -- first obtain the to-do ID list, and then use this skill to get the details.
npx skill4agent add wecomteam/wecom-cli wecomcli-get-todo-detailis the official command line program provided by WeCom, all operations are completed by executingwecom-clicommands.wecom-cli
wecom-clifollower_idcreator_idwecomcli-lookup-contactfollower_idcreator_idwecom-cli contact get_userlist '{}'wecom-cli todo get_todo_detail '<JSON format input parameter>'| Parameter | Type | Required | Description |
|---|---|---|---|
| array | ✅ | To-do ID list, maximum 20 entries |
wecom-cli todo get_todo_detail '{"todo_id_list": ["TODO_ID_1", "TODO_ID_2"]}'{
"errcode": 0,
"errmsg": "ok",
"data_list": [
{
"todo_id": "TODO_ID",
"todo_status": 1,
"content": "Complete Q2 planning document",
"follower_list": {
"followers": [
{
"follower_id": "FOLLOWER_ID",
"follower_status": 1,
"update_time": "2025-01-16 14:20:00"
}
]
},
"creator_id": "CREATOR_ID",
"user_status": 1,
"remind_time": "2025-06-01 09:00:00",
"create_time": "2025-01-15 10:30:00",
"update_time": "2025-01-16 14:20:00"
}
]
}| Field | Type | Description |
|---|---|---|
| array | To-do detail list, maximum 20 entries |
| string | To-do ID |
| number | To-do status: |
| string | To-do content |
| array | Assignee list |
| string | Assignee ID (i.e. userid) — Need to convert to name via wecomcli-lookup-contact before display |
| number | Assignee status: |
| string | Assignee status update time |
| string | Creator ID — Need to convert to name via wecomcli-lookup-contact before display |
| number | Current user status |
| string | Reminder time |
| string | Creation time |
| string | Update time |
wecom-cli todo get_todo_list '{}'wecom-cli todo get_todo_detail '{"todo_id_list": ["TODO_ID_1", "TODO_ID_2", "TODO_ID_3"]}'Step 3 is the prerequisite for displaying readable results. Without this step, users will see a string of meaningless IDs instead of names.
📋 Your current to-do items (3 items in total)
1. 🔵 Complete Q2 planning document
- To-do status: In progress | My status: Accepted
- Reminder time: 2025-06-01 09:00
- Assignees: Zhang San, Li Si
- Creation time: 2025-01-15
2. 🔵 Submit weekly report
- To-do status: In progress | My status: Accepted
- Reminder time: 2025-03-17 18:00
- Creation time: 2025-03-10
3. ☑️ Code review
- To-do status: Completed | My status: Completed
- Creation time: 2025-03-01follower_idcreator_idwecom-cli contact get_userlist '{}'follower_idcreator_iduseridnametodo_idwecomcli-get-todo-listwecomcli-get-todo-listtodo_status012user_status012follower_status012errcode0errmsgtodo_id_list