全部產品
Search
文件中心

PolarDB:UpdatePolarClawAgentTools

更新時間:Jun 30, 2026

更新PolarClaw Agent工具配置。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求文法

POST  HTTP/1.1

請求參數

名稱

類型

必填

描述

樣本值

ApplicationId

string

應用 ID。

pa-xxx

AgentId

string

Agent ID

work

Profile

string

工具 Profile。

coding

Allow

array

顯式允許工具列表。

["read","write","exec"]

string

顯式允許工具。

read

AlsoAllow

array

額外允許工具列表。

["send_message"]

string

額外允許工具。

send_message

Deny

array

拒絕工具列表。

["exec"]

string

拒絕工具。

exec

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

RequestId

string

Id of the request

F45FFACC-xxx

Message

string

返回訊息。

success

Code

integer

返回狀態碼。

200

ApplicationId

string

應用 ID。

pa-xxx

Ok

boolean

操作是否成功。

true

AgentId

string

Agent ID

work

Tools

object

更新後的工具配置。

Profile

string

工具 Profile。

coding

Allow

array

顯式允許工具列表。

string

工具標識。

read

AlsoAllow

array

額外允許工具列表。

string

工具標識。

send_message

Deny

array

拒絕工具列表。

string

工具標識。

exec

樣本

正常返回樣本

JSON格式

{
  "RequestId": "F45FFACC-xxx",
  "Message": "success",
  "Code": 200,
  "ApplicationId": "pa-xxx",
  "Ok": true,
  "AgentId": "work",
  "Tools": {
    "Profile": "coding",
    "Allow": [
      "read"
    ],
    "AlsoAllow": [
      "send_message"
    ],
    "Deny": [
      "exec"
    ]
  }
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情