全部产品
Search
文档中心

云原生数据库 PolarDB:UpdatePolarClawAgentTools - 更新PolarClaw Agent工具配置

更新时间: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"
    ]
  }
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情