# list_projects

> 這個 AirBuild MCP 工具會列出團隊的專案，每個都帶有名稱、聊天的 channelId 以及在其中工作的 Agent。

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

`list_projects` 會列出團隊的專案，最早的在前。專案是團隊建置的一個 App；每個專案都有自己的聊天，你在其中與為它工作的 Agent 交談。清單會提供每個專案的 ID、名稱、聊天的 `channelId` 以及在其聊天中的 Agent ID。它只會讀取：不會顯示專案的檔案或建置版本。

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

## 輸入

| 輸入 | 類型 | 必填 | 預設值 | 作用 |
| --- | --- | --- | --- | --- |
| `teamId` | 字串（UUID） | 是 | — | 團隊，來自 [list_teams](https://air.build/tw/docs/mcp-tools/list_teams/) |

## 結果

| 欄位 | 說明 |
| --- | --- |
| `projects` | 每個專案一項，最早的在前 |
| `projects[].projectId` | 專案的 ID（UUID） |
| `projects[].name` | 專案的名稱 |
| `projects[].channelId` | 它的聊天：`proj.` 加上專案的 ID。把它用於 [send_message](https://air.build/tw/docs/mcp-tools/send_message/) 和 [read_messages](https://air.build/tw/docs/mcp-tools/read_messages/) |
| `projects[].agentIds` | 在專案聊天中的 Agent，依 `agentId` 列出 |
| `projects[].appBundleId` | App 有 bundle ID 後的 bundle ID（第一次 iOS 建置時取得），或 `null` |
| `projects[].hasPicture` | 專案有自己的圖片時為 `true` |

```json
{
  "projects": [
    {
      "projectId": "00000000-0000-0000-0000-000000000000",
      "name": "Notes",
      "channelId": "proj.00000000-0000-0000-0000-000000000000",
      "agentIds": ["designer"],
      "appBundleId": "com.example.notes",
      "hasPicture": false
    }
  ]
}
```

## 錯誤

| 訊息 | 何時出現 | 處理方式 |
| --- | --- | --- |
| Team not found. | 團隊不存在，或你不在其中 | 使用 [list_teams](https://air.build/tw/docs/mcp-tools/list_teams/) 傳回的 `teamId` |

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

## 範例

```json
{"name": "list_projects", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000"}}
```
