openclaw directory
対応しているchannels向けのdirectory検索(連絡先/peer、group、「自分」)。
よく使うフラグ
--channel <name>: channel id/alias(複数のchannelsが設定されている場合は必須。1つだけ設定されている場合は自動)--account <id>: account id(デフォルト: channel default)--json: JSONを出力
注
directoryは、他のコマンドに貼り付けられるIDを見つけるためのものです(特にopenclaw message send --target ...)。- 多くのchannelsでは、結果はライブprovider directoryではなく、configベース(allowlist / 設定済みgroups)です。
- デフォルト出力は
id(場合によってはnameも)をタブ区切りで表示します。スクリプト用途では--jsonを使用してください。
message sendで結果を使う
ID形式(channel別)
- WhatsApp:
+15551234567(DM)、1234567890-1234567890@g.us(group) - Telegram:
@usernameまたは数値chat id。groupsは数値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): user id(Bot API)
- Zalo Personal /
zalouser(plugin):zcaのthread id(DM/group)(me、friend list、group list)