list_channels
Retrieve Zoom channel details with pagination support using the Zoom API. Specify page size and token to manage large datasets efficiently.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next_page_token | No | Next page token | |
| page_size | No | Number of records returned |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"next_page_token": {
"description": "Next page token",
"type": "string"
},
"page_size": {
"description": "Number of records returned",
"maximum": 300,
"minimum": 1,
"type": "number"
}
},
"type": "object"
}
Implementation Reference
- src/tools/chat.js:12-23 (handler)Handler function that fetches the list of channels from the Zoom API endpoint '/chat/users/me/channels', supports pagination with page_size and next_page_token, and handles API response and errors.handler: async ({ page_size, next_page_token }) => { try { const params = {}; if (page_size) params.page_size = page_size; if (next_page_token) params.next_page_token = next_page_token; const response = await zoomApi.get('/chat/users/me/channels', { params }); return handleApiResponse(response); } catch (error) { return handleApiError(error); } }
- src/tools/chat.js:8-11 (schema)Zod schema defining optional input parameters for pagination: page_size (number between 1 and 300) and next_page_token (string).schema: { page_size: z.number().min(1).max(300).optional().describe("Number of records returned"), next_page_token: z.string().optional().describe("Next page token") },
- src/server.js:50-50 (registration)Registers the chatTools array containing the 'list_channels' tool definition with the MCP server.registerTools(chatTools);