dex_add_contacts_to_group
Add multiple contacts to a specific group in Dex CRM by providing their contact IDs and the target group ID.
Instructions
Add one or more contacts to a group by providing their IDs.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | Yes | ||
| contactIds | Yes |
Implementation Reference
- src/tools/groups.ts:97-114 (handler)The implementation of the `dex_add_contacts_to_group` tool, including its registration, input schema, and execution logic.
server.tool( "dex_add_contacts_to_group", "Add one or more contacts to a group by providing their IDs.", { groupId: z.string(), contactIds: z.array(z.string()), }, async (args) => { try { const result = await dex.put(`/v1/groups/${args.groupId}/contacts`, { contactIds: args.contactIds, }); return toResult(result); } catch (error) { return toError(error); } } );