MCP 工具

這個 AirBuild MCP 工具會變更 Agent 的個人資料:名稱、角色、簡介、人設風格、指示或模型。

update_agent 會變更 Agent 的個人資料:名稱、角色、簡介、人設風格、指示或模型。只傳送要變更的內容。省略的欄位維持原樣;null 會把它恢復為範本的值。重新命名 Agent 也會重新命名它的私訊。@ 名稱(agentId)無法變更,這個工具也不能開啟或關閉 Agent,或把它設為主持 Agent:這些操作在 App 中完成。它的照片用 start_picture_upload 設定。團隊中的任何人都可以呼叫。

唯讀 破壞性 冪等
否 否 是

輸入

除 teamId 和 agentId 外,至少提供一個欄位。

輸入 類型 必填 預設值 作用
teamId 字串(UUID) 是 — 團隊,來自 list_teams
agentId string 是 — Agent,來自 list_team_members
displayName 字串或 null 否 unchanged 它的名稱;null 恢復為範本的值
role 字串或 null 否 unchanged 一句話:它在團隊中做什麼
bio 字串或 null 否 unchanged 它負責的領域;團隊據此決定由誰處理訊息
persona 字串或 null 否 unchanged 它的說話方式
rolePrompt 字串或 null 否 unchanged 它的指示
replyRegister general、professional 或 null 否 — 已停用:會接受但不做任何變更
model string 否 unchanged 來自 list_models 的模型 ID,或用 default 跟隨團隊的預設模型

結果

欄位 說明
agent 變更後的 Agent,帶有 list_team_members 的欄位:agentId、name、template、role、bio、persona、rolePrompt、model、replyRegister、host、enabled
{
  "agent": {
    "agentId": "designer",
    "name": "Designer",
    "template": "designer",
    "role": "Designs the app's screens and icons",
    "bio": "Layout, icons and colours.",
    "persona": null,
    "rolePrompt": null,
    "model": "<model id>",
    "replyRegister": null,
    "host": false,
    "enabled": true
  }
}

錯誤

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

訊息 何時出現 處理方式
Give at least one field to change. 只傳送了 teamId 和 agentId 傳送一個要變更的欄位
field must be text or null. 某個個人資料欄位既不是文字也不是 null 傳送文字或 null
Enter a value for field, or reset it to use the default. 某個個人資料欄位為空或只有空格 傳送文字,或傳送 null 以使用範本的值
Choose a valid model and try again. model 為空、含有空格或過長 從 list_models 中取一個 ID
Team member not found. 團隊中沒有該 agentId 的 Agent 從 list_team_members 取得
Team not found. 團隊不存在,或你不在其中 使用 list_teams 傳回的 teamId

所有工具都可能傳回的錯誤,請參閱 伺服器與登入。

範例

{"name": "update_agent", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "agentId": "designer", "role": "Designs the app's screens and icons"}}