# remove_person

> 這個 AirBuild MCP 工具會把一位成員從團隊中移除；其訊息會保留。僅限擁有者。

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

`remove_person` 會把一位成員移出團隊。此人會立即失去團隊聊天和專案的存取權；此人寫過的訊息會保留，仍顯示其名字。它不會刪除此人的 AirBuild 帳號，也不會停用此人可以用來重新加入的邀請連結：請用 [revoke_invite](https://air.build/tw/docs/mcp-tools/revoke_invite/) 撤銷連結。只有團隊擁有者可以移除成員，而且擁有者永遠不能被移除。移除已經離開的人不會有任何變化。

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

## 輸入

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

## 結果

| 欄位 | 說明 |
| --- | --- |
| `removed` | `true` |

```json
{ "removed": true }
```

## 錯誤

| 訊息 | 何時出現 | 處理方式 |
| --- | --- | --- |
| Only the Team's owner can remove people. | 你是這個團隊的成員，而不是擁有者 | 請擁有者操作 |
| The owner cannot be removed from their own Team. | `userId` 是擁有者的 | 擁有者會保留 |
| That person is not in this Team. | `userId` 從未在這個團隊中 | 從 [list_team_members](https://air.build/tw/docs/mcp-tools/list_team_members/) 取得 |
| 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": "remove_person", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "userId": "00000000-0000-0000-0000-000000000000"}}
```
