dex_list_group_contacts
Retrieve contacts associated with a specific group in Dex CRM. Supports pagination to manage large contact lists efficiently.
Instructions
List all contacts that belong to a specific group. Supports pagination.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | Yes | ||
| take | No | ||
| cursor | No |
Implementation Reference
- src/tools/groups.ts:73-90 (handler)Tool registration and handler implementation for dex_list_group_contacts. It takes groupId, optional take, and cursor parameters, calls the Dex API, and returns the result.
server.tool( "dex_list_group_contacts", "List all contacts that belong to a specific group. Supports pagination.", { groupId: z.string(), take: z.number().optional(), cursor: z.string().optional(), }, async (args) => { try { const query: Record<string, string | number | boolean | undefined> = {}; if (args.take !== undefined) query.take = args.take; if (args.cursor !== undefined) query.cursor = args.cursor; const result = await dex.get( `/v1/groups/${args.groupId}/contacts`, Object.keys(query).length ? query : undefined ); return toResult(result);