openclaw directory
对支持目录功能的渠道做查询(联系人/peers、群组,以及“我”)。
常用参数
--channel <name>:渠道 id/别名(配置多个渠道时必填;仅有一个渠道时自动选择)--account <id>:账号 id(默认:渠道默认账号)--json:输出 JSON
说明
directory用于查找可粘贴到其他命令的 ID(尤其是openclaw message send --target ...)。- 许多渠道的结果来自配置(allowlist/已配置群组),而非实时 provider 目录。
- 默认输出为
id(有时带name),用制表符分隔;脚本使用--json。
与 message send 联用
ID 格式(按渠道)
- WhatsApp:
+15551234567(私聊),1234567890-1234567890@g.us(群) - Telegram:
@username或数字 chat 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(插件):user id(Bot API)
- Zalo Personal /
zalouser(插件):zca的 thread id(DM/群) (me、friend list、group list)