# rename_team

> 這個 AirBuild MCP 工具會設定或清除團隊的名稱。僅限擁有者。

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

`rename_team` 會設定團隊的名稱，也就是團隊中所有人在 App 中看到的名稱。`null` 或空白名稱會清除它。只有團隊擁有者可以重新命名團隊：成員呼叫會失敗（請參閱 [list_teams](https://air.build/tw/docs/mcp-tools/list_teams/) 中的 `role`）。它只會變更名稱，不會變更團隊的圖片（請使用帶 `target: "team"` 的 [start_picture_upload](https://air.build/tw/docs/mcp-tools/start_picture_upload/)），也不會變更團隊的專案。

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

## 輸入

| 輸入 | 類型 | 必填 | 預設值 | 作用 |
| --- | --- | --- | --- | --- |
| `teamId` | 字串（UUID） | 是 | — | 團隊，來自 [list_teams](https://air.build/tw/docs/mcp-tools/list_teams/) |
| `name` | 字串（最多 64 個字元）或 `null` | 是 | — | 新名稱。兩端的空格會被去除；不能包含換行字元或控制字元。`null` 或 `""` 會清除它 |

## 結果

| 欄位 | 說明 |
| --- | --- |
| `teamId` | 團隊的 ID |
| `name` | 儲存的名稱，清除後為 `null` |

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

## 錯誤

| 訊息 | 何時出現 | 處理方式 |
| --- | --- | --- |
| name must be text or null. | 缺少 `name`，或它既不是文字也不是 `null` | 傳送文字，或傳送 `null` 以清除名稱 |
| Only the Team's owner can rename the Team. | 你是這個團隊的成員，而不是擁有者 | 請擁有者重新命名 |
| A Team name can be at most 64 characters. | 去除兩端空格後 `name` 仍過長 | 使用較短的名稱 |
| A Team name can't contain line breaks or control characters. | `name` 包含換行、控制字元或文字方向標記 | 使用純文字 |
| 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": "rename_team", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "name": "Notes"}}
```
