查詢PolarClaw Agent工具目錄。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求文法
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 |
||
|
string |
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"
]
}
]
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。