remove_picture
這個 AirBuild MCP 工具會移除團隊、專案、Agent 或群組的圖片,或聊天的背景圖片,恢復為預設樣式。
remove_picture 會移除一張圖片:團隊的、專案的、Agent 的照片、群組聊天的圖片,或聊天的背景圖片。對團隊中的所有人,原位置都會恢復為預設樣式。被移除的圖片會被刪除且無法復原:若要再次使用,請用 start_picture_upload 重新上傳。移除未設定的圖片不會有任何變化。團隊的圖片只有擁有者可以移除;其他圖片團隊中的任何人都可以移除。
| 唯讀 | 破壞性 | 冪等 |
|---|---|---|
| 否 | 是 | 是 |
輸入
| 輸入 | 類型 | 必填 | 預設值 | 作用 |
|---|---|---|---|---|
teamId |
字串(UUID) | 是 | — | 團隊,來自 list_teams |
target |
team、project、agent、group 或 wallpaper |
是 | — | 哪張圖片:請參閱 目標 |
targetId |
string | 除了 team 以外都需要 |
— | 專案、Agent 或聊天:請參閱 目標 |
結果
| 欄位 | 說明 |
|---|---|
removed |
true |
{ "removed": true }錯誤
| 訊息 | 何時出現 | 處理方式 |
|---|---|---|
| target is one of team, project, agent, group, wallpaper. | target 是其他值 |
使用這五個之一 |
| targetId is required. | target 不是 team,且缺少 targetId |
提供專案、Agent 或聊天 |
| Only the Team’s owner can change the Team’s picture. | target 為 team,但你不是擁有者 |
請擁有者操作 |
| Only a group has a picture of its own. | target 為 group,但該聊天是專案聊天或私訊 |
若是專案,請使用 target: "project" |
| Project not found. | 這個團隊中沒有該 targetId 的專案 |
從 list_projects 取得 |
| Team member not found. | 團隊中沒有該 targetId 的 Agent |
從 list_team_members 取得 |
| Channel not found. | 這個團隊中沒有該聊天,或你看不到它 | 使用 list_channels 傳回的 channelId |
| Team not found. | 團隊不存在,或你不在其中 | 使用 list_teams 傳回的 teamId |
所有工具都可能傳回的錯誤,請參閱 伺服器與登入。
範例
{"name": "remove_picture", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "target": "wallpaper", "targetId": "proj.00000000-0000-0000-0000-000000000000"}}