# list_members

> 這個 AirBuild MCP 工具會列出一個頻道中的成員：人和 Agent，以及每個 Agent 的角色和它此刻在其中做什麼。

Source: https://air.build/tw/docs/mcp-tools/list_members/

`list_members` 會列出一個頻道中的成員：在其中的人和 Agent，人在前（擁有者排第一），然後是依名稱排列的 Agent。對每個 Agent，它還會說明該 Agent 此刻在這個頻道中做什麼。若要喚醒 Agent，請在用 [send_message](https://air.build/tw/docs/mcp-tools/send_message/) 傳送的訊息中以 `@agentId` 提及它。若要查看整個團隊而不是一個頻道的成員，請使用 [list_team_members](https://air.build/tw/docs/mcp-tools/list_team_members/)。

| 唯讀 | 破壞性 | 冪等 |
| --- | --- | --- |
| 是 | 否 | 是 |

## 輸入

| 輸入 | 類型 | 必填 | 預設值 | 作用 |
| --- | --- | --- | --- | --- |
| `teamId` | 字串（UUID） | 是 | — | 團隊，來自 [list_teams](https://air.build/tw/docs/mcp-tools/list_teams/) |
| `channelId` | string | 是 | — | 頻道，來自 [list_channels](https://air.build/tw/docs/mcp-tools/list_channels/)，例如 `proj.<uuid>` 或 `dm.<agent>` |
| `page` | 整數，1 到 1000000 | 否 | `1` | 成員的第幾頁；每頁 20 個 |

## 結果

| 欄位 | 說明 |
| --- | --- |
| `members` | 頻道中最多 20 個成員 |
| `members[].kind` | `user`（人）或 `agent` |
| `members[].id` | 人的 `userId`（UUID）或 Agent 的 `agentId`（它的 `@` 名稱） |
| `members[].name` | App 中顯示的名稱 |
| `members[].role` | Agent 的一句話角色，或 `null` |
| `members[].bio` | Agent 對其負責領域的簡短說明，或 `null` |
| `members[].host` | 團隊的主持 Agent 為 `true` |
| `members[].status` | Agent 在這個頻道中正在做的事，格式為 `"<emoji> <text>"`。如果 Agent 上一次執行失敗，則改為 `"⚠️ <what went wrong>"`。對於人、在這裡沒有顯示內容的 Agent，以及無法讀取狀態時的所有成員，為 `null` |
| `page` | 你取得的頁面 |
| `totalCount` | 頻道的成員總數 |

已關閉的 Agent 不會在專案和群組聊天中列出。

```json
{
  "members": [
    { "kind": "user", "id": "00000000-0000-0000-0000-000000000000", "name": "Notes", "role": null, "bio": null, "host": false, "status": null },
    { "kind": "agent", "id": "designer", "name": "Designer", "role": "Designs the app's screens", "bio": "Ask me about layout and icons.", "host": false, "status": "🎨 Drawing the settings screen" }
  ],
  "page": 1,
  "totalCount": 2
}
```

## 錯誤

| 訊息 | 何時出現 | 處理方式 |
| --- | --- | --- |
| Channel not found. | 這個團隊中沒有該頻道，或它是別人的私訊 | 使用 [list_channels](https://air.build/tw/docs/mcp-tools/list_channels/) 傳回的 `channelId` |
| Team not found. | 團隊不存在，或你不在其中 | 使用 [list_teams](https://air.build/tw/docs/mcp-tools/list_teams/) 傳回的 `teamId` |
| page must be between 1 and 1000000. | `page` 為 0 或大於 1000000 | 頁碼從 1 開始；取得 `totalCount` 個成員後停止 |

所有工具都可能傳回的錯誤，請參閱 [伺服器與登入](https://air.build/tw/docs/mcp-tools/server/#errors)。

## 範例

```json
{"name": "list_members", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "channelId": "proj.00000000-0000-0000-0000-000000000000"}}
```
