wecom-cliis a command-line program provided by WeCom. All operations are performed by executingwecom-clicommands.
Overview
wecomcli-edit-meeting provides WeCom meeting management capabilities, including the following features:
- Cancel meeting - Cancel a specified scheduled meeting
- Update meeting invitees - Modify the meeting's participant list
How to invoke commands
Invoke a specified command:
wecom-cli meeting <tool_name> '<json_params>'
Detailed command description
1. Cancel meeting (cancel_meeting)
Cancel a specified scheduled meeting.
Invoke command
wecom-cli meeting cancel_meeting '{"meetingid": "<会议id>"}'
Input parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
meetingid |
string | Yes | Meeting ID, obtained through the wecomcli-get-meeting skill |
Return parameters
{
"errcode": 0,
"errmsg": "ok"
}
2. Update meeting invitees (set_invite_meeting_members)
Update the meeting's invitee list (full overwrite).
Invoke command
wecom-cli meeting set_invite_meeting_members '{"meetingid": "<会议id>", "invitees": [{"userid": "lisi"}, {"userid": "wangwu"}]}'
Input parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
meetingid |
string | Yes | Meeting ID, obtained through the wecomcli-get-meeting skill |
invitees |
array | No | Invitee list, each item contains the userid field |
Note: invitees is a full overwrite; the passed-in list will replace the existing member list. The userid of invitees is obtained through the
wecomcli-lookup-contactskill
Return parameters
{
"errcode": 0,
"errmsg": "ok"
}
Typical workflows
Workflow 1: Cancel a meeting
Example: The user says "Help me cancel tomorrow's technical solution review meeting"
Steps:
- Locate the meeting: Query the meeting list through the
wecomcli-get-meetingskill + keyword matching to find the target meeting. - Execute cancellation directly:
wecom-cli meeting cancel_meeting '{"meetingid": "<target_meetingid>"}'
- Display the result:
✅ 会议已取消: 技术方案评审
Workflow 2: Update meeting members
Example: The user says "Add Wang Wu to the technical solution review meeting"
Steps:
- Locate the meeting: Query the meeting list through the
wecomcli-get-meetingskill + matching to find the target meeting. - Get the current invitees:
set_invite_meeting_membersis a full overwrite, so you must first use thewecomcli-get-meetingskill'sget_meeting_infoto get the meeting details, obtain the existing members, and then merge. - Address book lookup: Call the
wecomcli-lookup-contactskill to get address book members, and filter out Wang Wu's userid by name.
wecom-cli contact get_userlist '{}'
In the returned userlist , filter for members whose name contains "Wang Wu", and get their userid.
- Merge the member list: Merge existing members + newly added members (full overwrite).
- Execute the update:
wecom-cli meeting set_invite_meeting_members '{"meetingid": "<target_meetingid>", "invitees": [{"userid": "zhangsan"}, {"userid": "lisi"}, {"userid": "wangwu"}]}'
- Display the result:
✅ 会议成员已更新: 技术方案评审
👥 当前成员: 张三, 李四, 王五
Notes
- Participants only support internal enterprise members, external personnel are not supported
- Contact lookup: When participants are involved, you must first use the
wecomcli-lookup-contactskill'sget_userlistAPI to retrieve the full contact list, then filter and match locally by name/alias to find the correspondinguserid. This API takes no parameters and returns the list of members visible to the current user (includinguserid,name,alias) - Locate meeting: Management operations require first using the
wecomcli-get-meetingskill to query the target meeting's meetingid - Member update is a full overwrite:
set_invite_meeting_membersThe passed list will replace the existing member list; you must first retrieve the current members and then merge