manage_members
Add or remove members from a group chat. Use member IDs that match the specified ID type to prevent errors.
Instructions
[Official API] Add or remove members from a group chat. The Feishu API rejects with code 9499 when the IDs in member_ids do not match member_id_type — pass member_id_type explicitly when using union_id or user_id (default: open_id).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chat_id": "<chat_id>",
"member_ids": "<member_ids>",
"action": "<action>"
},
"name": "manage_members"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Group chat ID (oc_xxx) | |
| member_ids | Yes | Array of member identifiers — IDs must match member_id_type. | |
| action | Yes | Action to perform | |
| member_id_type | No | Format of member_ids (default: open_id). | open_id |