openclaw directory
対応チャネルのディレクトリ検索(連絡先/ピア、グループ、「自分」)。
共通フラグ
--channel <name>: チャネルID/エイリアス(複数のチャネルが設定されている場合は必須。1つだけの場合は自動)--account <id>: アカウントID(デフォルト: チャネルデフォルト)--json: JSON出力
補足
directoryは他のコマンド(特にopenclaw message send --target ...)に貼り付けるIDを見つけるためのものです。- 多くのチャネルでは、結果はライブプロバイダーディレクトリではなく設定ベース(許可リスト / 設定済みグループ)です。
- デフォルト出力はタブ区切りの
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)、[email protected](グループ) - Telegram:
@usernameまたは数値チャットID。グループは数値ID - Slack:
user:U…とchannel:C… - Discord:
user:<id>とchannel:<id> - Matrix(プラグイン):
user:@user:server、room:!roomId:server、または#alias:server - Microsoft Teams(プラグイン):
user:<id>とconversation:<id> - Zalo(プラグイン): ユーザーID(Bot API)
- Zalo Personal /
zalouser(プラグイン):zcaからのスレッドID(DM/グループ)(me、friend list、group list)
Self(「自分」)
openclaw directory self --channel zalouser
Peers(連絡先/ユーザー)
openclaw directory peers list --channel zalouser
openclaw directory peers list --channel zalouser --query "name"
openclaw directory peers list --channel zalouser --limit 50
Groups
openclaw directory groups list --channel zalouser
openclaw directory groups list --channel zalouser --query "work"
openclaw directory groups members --channel zalouser --group-id <id>