SuperAPI AI Directory

wecomcli-edit-meeting

General & other

View repository

Updated 10-16 09:46

About this skill

WeCom meeting management skill

wecom-cli is a command-line program provided by WeCom. All operations are performed by executing wecom-cli commands.

Overview

wecomcli-edit-meeting provides WeCom meeting management capabilities, including the following features:

  1. Cancel meeting - Cancel a specified scheduled meeting
  2. 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-contact skill

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:

  1. Locate the meeting: Query the meeting list through the wecomcli-get-meeting skill + keyword matching to find the target meeting.
  2. Execute cancellation directly:
wecom-cli meeting cancel_meeting '{"meetingid": "<target_meetingid>"}'
  1. Display the result:
✅ 会议已取消: 技术方案评审

Workflow 2: Update meeting members

Example: The user says "Add Wang Wu to the technical solution review meeting"

Steps:

  1. Locate the meeting: Query the meeting list through the wecomcli-get-meeting skill + matching to find the target meeting.
  2. Get the current invitees: set_invite_meeting_members is a full overwrite, so you must first use the wecomcli-get-meeting skill's get_meeting_info to get the meeting details, obtain the existing members, and then merge.
  3. Address book lookup: Call the wecomcli-lookup-contact skill 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.

  1. Merge the member list: Merge existing members + newly added members (full overwrite).
  2. Execute the update:
wecom-cli meeting set_invite_meeting_members '{"meetingid": "<target_meetingid>", "invitees": [{"userid": "zhangsan"}, {"userid": "lisi"}, {"userid": "wangwu"}]}'
  1. 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-contact skill's get_userlist API to retrieve the full contact list, then filter and match locally by name/alias to find the corresponding userid. This API takes no parameters and returns the list of members visible to the current user (including userid, name, alias)
  • Locate meeting: Management operations require first using the wecomcli-get-meeting skill to query the target meeting's meetingid
  • Member update is a full overwrite: set_invite_meeting_members The passed list will replace the existing member list; you must first retrieve the current members and then merge