# rename_project

> 這個 AirBuild MCP 工具會重新命名一個專案；它的聊天也會使用新名稱。

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

`rename_project` 會為專案取一個新名稱。專案的聊天會使用相同的名稱，所以團隊中的所有人都會立即在 App 中看到。它只會變更名稱：不會變更 App Store 上的 App 名稱、bundle ID 或檔案。把專案重新命名為它已有的名稱不會有任何變化。團隊中的任何人都可以呼叫。專案的聊天無法單獨重新命名：[update_group](https://air.build/tw/docs/mcp-tools/update_group/) 會拒絕。

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

## 輸入

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

## 結果

| 欄位 | 說明 |
| --- | --- |
| `project` | 變更後的專案，帶有 [list_projects](https://air.build/tw/docs/mcp-tools/list_projects/#result) 的欄位：`projectId`、`name`、`channelId`、`agentIds`、`appBundleId`、`hasPicture` |

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

## 錯誤

_斜體_ 文字代表句中的實際值。

| 訊息 | 何時出現 | 處理方式 |
| --- | --- | --- |
| name is required. | 缺少 `name`，或只有空格 | 傳送名稱 |
| Project names must be 1..._N_ characters after trimming. | `name` 過長 | 選擇較短的名稱 |
| Project names must not contain control or directional-override characters. | `name` 包含換行、控制字元或文字方向標記 | 使用純文字 |
| Project not found. | 這個團隊中沒有該 ID 的專案 | 使用 [list_projects](https://air.build/tw/docs/mcp-tools/list_projects/) 傳回的 `projectId` |
| 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_project", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "projectId": "00000000-0000-0000-0000-000000000000", "name": "Notes"}}
```
