Mengkueri katalog tool Agen PolarClaw.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ApplicationId |
string |
Yes |
ID aplikasi. |
pa-xxx |
| AgentId |
string |
Yes |
ID agen. |
main |
| IncludePlugins |
boolean |
No |
Apakah akan menyertakan tool plugin. |
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Tanggapan. |
||
| RequestId |
string |
ID permintaan. |
F45FFACC-xxx |
| Message |
string |
Paket tanggapan. |
success |
| Code |
integer |
Kode status tanggapan. |
200 |
| ApplicationId |
string |
ID aplikasi. |
pa-xxx |
| AgentId |
string |
ID agen. |
main |
| CurrentConfig |
object |
Konfigurasi tool saat ini. |
|
| Profile |
string |
Profil tool. |
full |
| Allow |
array |
Daftar tool yang diizinkan secara eksplisit. |
|
|
string |
Pengenal tool. |
read |
|
| AlsoAllow |
array |
Daftar tool yang diizinkan tambahan. |
|
|
string |
Pengenal tool. |
send_message |
|
| Deny |
array |
Daftar tool yang ditolak. |
|
|
string |
Pengenal tool. |
exec |
|
| Profiles |
array<object> |
Daftar profil yang tersedia. |
|
|
object |
Informasi profil. |
||
| Id |
string |
Pengenal profil. |
full |
| Label |
string |
Nama tampilan. |
全部工具 |
| Groups |
array<object> |
Daftar kelompok tool. |
|
|
array<object> |
Kelompok tool. |
||
| Id |
string |
Pengenal kelompok. |
file |
| Label |
string |
Nama kelompok. |
文件操作 |
| Source |
string |
Sumber, yaitu core atau ID plugin. |
core |
| Tools |
array<object> |
Daftar tool. |
|
|
object |
Informasi tool. |
||
| Id |
string |
read |
|
| Label |
string |
读取文件 |
|
| Description |
string |
读取指定文件内容 |
|
| Source |
string |
core |
|
| DefaultProfiles |
array |
||
|
string |
full |
Contoh
Respons sukses
JSONformat
{
"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"
]
}
]
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.