list_my_channels
List channels you are a member of in a Mattermost team, showing unread counts and read markers. Filter by channel type or only unread messages.
Instructions
List channels you are a member of in a team.
Returns your channels with unread counters and the read marker for the authenticated user. Two counter pairs are provided:
unread_msg_count/mention_countcount thread replies too (the channel badge with Collapsed Reply Threads off — the team default).unread_msg_count_root/mention_count_rootcount only root posts (the badge with Collapsed Reply Threads on).
last_viewed_at is the user's read marker for the channel. Pass it as
get_channel_messages(channel_id, since=last_viewed_at) for incremental sync, or
use get_channel_messages(channel_id, unread_only=True) for the unread window
(preferred — deterministic and edit-noise-free).
Channels without a membership record report 0 for all counters and last_viewed_at.
Use channel_types to narrow results: ["O", "P"] for workspace channels without DMs, or ["D"] for direct messages only. Use only_unread=True to get only channels with unread messages. For discovering public channels you haven't joined yet, use list_public_channels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team_id | Yes | 26-character team identifier (e.g., 'o5w8h47pdfbzjc4d8w7dhnhren') | |
| only_unread | No | Return only channels with unread messages | |
| channel_types | No | Channel types to include: O=public, P=private, D=direct message, G=group message. Omit to return all types. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |