ディレクトリ
openclaw directory の CLI リファレンス(self、peers、groups)。
サポートしているチャンネルのディレクトリ検索(連絡先/ピア、グループ、「私」)。
一般的なフラグ
- ''--channel <name>'': Channel ID/alias (required when multiple channels configured; auto when only one)
- ''--account <id>'': Account ID (default: channel default)
- ''--json'': Output JSON
Notes
- ''directory'' は、他のコマンドに貼り付けできる ID を見つけるのに役立ちます(特に ''openclaw message send --target ...'')。
- 多くのチャンネルでは、結果は設定に基づいています(許可リスト/設定されたグループ)、ライブプロバイダーディレクトリではありません。
- デフォルトの出力は ''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>'' and ''channel:<id>''
- Matrix (プラグイン):''user:@user:server''、''room:!roomId:server'' または ''#alias:server''
- Microsoft Teams (plugin): ''user:<id>'' and ''conversation:<id>''
- Zalo (プラグイン):ユーザー ID (Bot API)
- Zalo Personal / ''zalouser'' (プラグイン):''zca'' (''me''、''friend list''、''group list'') からのスレッド ID (DM/グループ)
Self ("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>