PolarClaw エージェントのツールカタログを照会します。
今すぐお試しください
テスト
RAM 認証
リクエスト構文
POST HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ApplicationId |
string |
必須 |
アプリケーション ID。 |
pa-xxx |
| AgentId |
string |
必須 |
エージェント ID。 |
main |
| IncludePlugins |
boolean |
任意 |
プラグインツールを含めるかどうかを指定します。 |
true |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスのスキーマ。 |
||
| RequestId |
string |
リクエストの ID。 |
F45FFACC-xxx |
| Message |
string |
応答メッセージ。 |
success |
| Code |
integer |
応答状態コード。 |
200 |
| ApplicationId |
string |
アプリケーション ID。 |
pa-xxx |
| AgentId |
string |
エージェント ID。 |
main |
| CurrentConfig |
object |
現在のツール構成。 |
|
| Profile |
string |
ツールプロファイル。 |
full |
| Allow |
array |
明示的に許可されたツールのリスト。 |
|
|
string |
ツール識別子。 |
read |
|
| AlsoAllow |
array |
追加で許可されたツールのリスト。 |
|
|
string |
ツール識別子。 |
send_message |
|
| Deny |
array |
拒否されたツールのリスト。 |
|
|
string |
ツール識別子。 |
exec |
|
| Profiles |
array<object> |
利用可能なプロファイルのリスト。 |
|
|
object |
プロファイル情報。 |
||
| Id |
string |
プロファイル識別子。 |
full |
| Label |
string |
表示名。 |
全部工具 |
| Groups |
array<object> |
ツールグループのリスト。 |
|
|
array<object> |
ツールグループ。 |
||
| Id |
string |
グループ識別子。 |
file |
| Label |
string |
グループ名。 |
文件操作 |
| Source |
string |
ソース。コアまたはプラグイン ID です。 |
core |
| Tools |
array<object> |
ツールのリスト。 |
|
|
object |
ツール情報。 |
||
| Id |
string |
read |
|
| Label |
string |
读取文件 |
|
| Description |
string |
读取指定文件内容 |
|
| Source |
string |
core |
|
| DefaultProfiles |
array |
||
|
string |
full |
例
成功レスポンス
JSONJSON
{
"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"
]
}
]
}
]
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。