CLI commands
ディレクトリ
openclaw directory
対応しているチャンネル向けのディレクトリ検索(連絡先/ピア、グループ、および「me」)。
共通フラグ
--channel <name>: チャンネル ID/エイリアス(複数のチャンネルが設定されている場合は必須。1 つだけ設定されている場合は自動)--account <id>: アカウント ID(デフォルト: チャンネルのデフォルト)--json: JSON を出力
注記
directoryは、他のコマンド(特にopenclaw message send --target ...)に貼り付けられる ID を見つけるためのものです。- 多くのチャンネルでは、結果はライブプロバイダーディレクトリではなく、設定ベース(許可リスト / 設定済みグループ)です。
- インストール済みのチャンネル Plugin は、ディレクトリ対応を省略している場合があります。その場合、コマンドは Plugin を再インストールするのではなく、未対応のディレクトリ操作を報告します。
- デフォルト出力は、タブ区切りの
id(場合によってはname)です。スクリプト用途には--jsonを使用してください。
結果を message send で使用する
openclaw directory peers list --channel slack --query "U0"openclaw message send --channel slack --target user:U012ABCDEF --message "hello"ID 形式(チャンネル別)
- WhatsApp:
+15551234567(DM)、1234567890-1234567890@g.us(グループ)、120363123456789@newsletter(Channel/Newsletter の送信先ターゲット) - Signal: 設定済みエイリアスは、E.164/UUID の DM ターゲット、または
group:<id>グループターゲットに解決されます - Telegram:
@usernameまたは数値のチャット ID。グループは数値 ID です - Slack:
user:U…とchannel:C… - Discord:
user:<id>とchannel:<id> - Matrix(Plugin):
user:@user:server、room:!roomId:server、または#alias:server - Microsoft Teams(Plugin):
user:<id>とconversation:<id> - Zalo(Plugin): ユーザー ID(Bot API)
- Zalo Personal /
zalouser(Plugin):zcaからのスレッド ID(DM/グループ)(me、friend list、group list)
自分自身(「me」)
openclaw directory self --channel zalouserピア(連絡先/ユーザー)
openclaw directory peers list --channel zalouseropenclaw directory peers list --channel zalouser --query "name"openclaw directory peers list --channel zalouser --limit 50グループ
openclaw directory groups list --channel zalouseropenclaw directory groups list --channel zalouser --query "work"openclaw directory groups members --channel zalouser --group-id <id>関連
Was this useful?