get_channels
Retrieve channel lists for a specific team in Mattermost to manage communication channels and organize team discussions effectively.
Instructions
특정 팀의 채널 목록을 가져옵니다.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team_id | Yes | 팀 ID |
Implementation Reference
- src/index.ts:542-553 (handler)Handler for the 'get_channels' tool: extracts team_id argument, calls client.getChannelsForTeam(teamId), and returns the channels as formatted JSON text.case "get_channels": { const teamId = args.team_id as string; const channels = await client.getChannelsForTeam(teamId); return { content: [ { type: "text", text: JSON.stringify(channels, null, 2), }, ], }; }
- src/index.ts:265-278 (schema)Schema definition for the 'get_channels' tool, including name, description, and input schema requiring 'team_id'.{ name: "get_channels", description: "특정 팀의 채널 목록을 가져옵니다.", inputSchema: { type: "object", properties: { team_id: { type: "string", description: "팀 ID", }, }, required: ["team_id"], }, },
- src/index.ts:147-149 (helper)Helper method in MattermostClient that fetches the channels for a given team ID via the Mattermost API.async getChannelsForTeam(teamId: string) { return await this.request(`/users/me/teams/${teamId}/channels`); }