list_channels
這個 AirBuild MCP 工具會列出你能看到的團隊頻道:專案聊天、群組聊天和你的私訊,每個都帶有最新序號和預覽。
list_channels 會顯示團隊中對你開放的每個聊天:每個專案的聊天、每個群組聊天(無論你是否在其中),以及你與 Agent 和與人的私訊。每個聊天都會提供其最新訊息的序號,以及該訊息內容的簡短預覽。它不會把任何內容標示為已讀:此人在 App 中的未讀狀態維持不變。請把這裡的 channelId 用於 read_messages、send_message 和 wait_message。
| 唯讀 | 破壞性 | 冪等 |
|---|---|---|
| 是 | 否 | 是 |
輸入
| 輸入 | 類型 | 必填 | 預設值 | 作用 |
|---|---|---|---|---|
teamId |
字串(UUID) | 是 | — | 團隊,來自 list_teams |
結果
| 欄位 | 說明 |
|---|---|
channels |
你能看到的每個頻道一項 |
channels[].channelId |
頻道的 ID。它以種類開頭:proj.(專案的聊天)、grp.(群組聊天)、dm.(你與某個 Agent 的私訊)或 hdm.(兩個人之間的私訊) |
channels[].kind |
proj、group、agent_dm 或 human_dm |
channels[].title |
所有人看到的名稱。未命名的群組會以其成員的名字組成 |
channels[].description |
頻道的說明,或 null |
channels[].projectId |
專案的聊天為專案的 ID;否則為 null |
channels[].agentId |
與 Agent 的私訊頻道為該 Agent 的 ID;否則為 null |
channels[].lastSequence |
頻道最新訊息的序號。把它作為 afterSequence 傳給 wait_message,只接收之後的訊息 |
channels[].lastMessageAt |
最新訊息的傳送時間(ISO 8601),或 null |
channels[].latestPreview |
最後一則訊息,以一行顯示,"<sender name>: <text>",或 null |
channels[].seated |
你是否在頻道中佔有席位。沒有席位也能讀取專案或群組聊天,但要在其中發言或回應,需要先加入:在 add_channel_members 中填入你自己 |
channels[].canSend |
頻道是否接收訊息。對於已封存的專案或群組,以及你與已關閉的 Agent 的私訊(你仍然可以讀取),它為 false |
{
"channels": [
{
"channelId": "proj.00000000-0000-0000-0000-000000000000",
"kind": "proj",
"title": "Notes",
"description": null,
"projectId": "00000000-0000-0000-0000-000000000000",
"agentId": null,
"lastSequence": 1287,
"lastMessageAt": "2026-11-20T09:30:00Z",
"latestPreview": "Designer: The new icon is ready.",
"seated": true,
"canSend": true
}
]
}錯誤
| 訊息 | 何時出現 | 處理方式 |
|---|---|---|
| Team not found. | 團隊不存在,或你不在其中 | 使用 list_teams 傳回的 teamId |
所有工具都可能傳回的錯誤,請參閱 伺服器與登入。
範例
{"name": "list_channels", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000"}}