更新PolarClaw Agent工具配置
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
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"
]
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。