CLI commands

ディレクトリ

openclaw directory

対応しているチャネル向けのディレクトリ検索(連絡先/ピア、グループ、および "me")。

共通フラグ

  • --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](グループ)、120363123456789@newsletter(チャネル/ニュースレターの送信先ターゲット)
  • Telegram: @username または数値チャット ID。グループは数値 ID
  • Slack: user:U…channel:C…
  • Discord: user:<id>channel:<id>
  • Matrix(Plugin): user:@user:serverroom:!roomId:server、または #alias:server
  • Microsoft Teams(Plugin): user:<id>conversation:<id>
  • Zalo(Plugin): ユーザー ID(Bot API)
  • Zalo Personal / zalouser(Plugin): zca からのスレッド ID(DM/グループ)(mefriend listgroup list

自分("me")

openclaw directory self --channel zalouser

ピア(連絡先/ユーザー)

openclaw directory peers list --channel zalouser
openclaw directory peers list --channel zalouser --query "name"
openclaw directory peers list --channel zalouser --limit 50

グループ

openclaw directory groups list --channel zalouser
openclaw directory groups list --channel zalouser --query "work"
openclaw directory groups members --channel zalouser --group-id <id>

関連