OpenClawSkills
GitHub
CLI リファレンス • 5分で読める

ディレクトリ

openclaw directory の CLI リファレンス(self、peers、groups)。

サポートしているチャンネルのディレクトリ検索(連絡先/ピア、グループ、「私」)。

Tutorial.step

一般的なフラグ

- ''--channel <name>'': Channel ID/alias (required when multiple channels configured; auto when only one)

- ''--account <id>'': Account ID (default: channel default)

- ''--json'': Output JSON

Tutorial.step

Notes

- ''directory'' は、他のコマンドに貼り付けできる ID を見つけるのに役立ちます(特に ''openclaw message send --target ...'')。

- 多くのチャンネルでは、結果は設定に基づいています(許可リスト/設定されたグループ)、ライブプロバイダーディレクトリではありません。

- デフォルトの出力は ''id'' (場合によっては ''name'')、タブ区切り;スクリプティングには ''--json'' を使用してください。

Tutorial.step

`message send` で結果を使用

Bash
openclaw directory peers list --channel slack --query "U0"
openclaw message send --channel slack --target user:U012ABCDEF --message "hello"
Tutorial.step

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/グループ)

Tutorial.step

Self ("me")

Bash
openclaw directory self --channel zalouser
Tutorial.step

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

Bash
openclaw directory peers list --channel zalouser
openclaw directory peers list --channel zalouser --query "name"
openclaw directory peers list --channel zalouser --limit 50
Tutorial.step

グループ

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