全部产品
Search
文档中心

云原生数据库 PolarDB:DescribePolarClawAgentTools - 查询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

main

IncludePlugins

boolean

是否包含插件工具

true

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

Id of the request

F45FFACC-xxx

Message

string

返回消息

success

Code

integer

返回状态码

200

ApplicationId

string

应用 ID

pa-xxx

AgentId

string

Agent ID

main

CurrentConfig

object

当前工具配置

Profile

string

工具 Profile

full

Allow

array

显式允许工具列表

string

工具标识

read

AlsoAllow

array

额外允许工具列表

string

工具标识

send_message

Deny

array

拒绝工具列表

string

工具标识

exec

Profiles

array<object>

可用 Profile 列表

object

Profile 信息

Id

string

Profile 标识

full

Label

string

显示名称

全部工具

Groups

array<object>

工具分组列表

array<object>

工具分组

Id

string

分组标识

file

Label

string

分组名称

文件操作

Source

string

来源:core 或插件 ID

core

Tools

array<object>

工具列表

object

工具信息

Id

string

工具标识

read

Label

string

工具名称

读取文件

Description

string

工具描述

读取指定文件内容

Source

string

来源

core

DefaultProfiles

array

默认包含此工具的 Profile 列表

string

Profile 标识

full

示例

正常返回示例

JSON格式

{
  "RequestId": "F45FFACC-xxx",
  "Message": "success",
  "Code": 200,
  "ApplicationId": "pa-xxx",
  "AgentId": "main",
  "CurrentConfig": {
    "Profile": "full",
    "Allow": [
      "read"
    ],
    "AlsoAllow": [
      "send_message"
    ],
    "Deny": [
      "exec"
    ]
  },
  "Profiles": [
    {
      "Id": "full",
      "Label": "全部工具"
    }
  ],
  "Groups": [
    {
      "Id": "file",
      "Label": "文件操作",
      "Source": "core",
      "Tools": [
        {
          "Id": "read",
          "Label": "读取文件",
          "Description": "读取指定文件内容",
          "Source": "core",
          "DefaultProfiles": [
            "full"
          ]
        }
      ]
    }
  ]
}

错误码

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

变更历史

更多信息,参考变更详情