目录
“openclaw directory”的 CLI 参考(自身、同级、组)
目录查找支持它的渠道(联系人/同级、群组和"我")。
常用标志
- ''--channel <name>'': Channel ID/alias (required when multiple channels configured; auto when only one)
- ''--account <id>'': Account ID (default: channel default)
- ''--json'':输出 JSON
注释
- ''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]''(团体)
- 电报:''@username'' 或数字聊天 ID;组是数字 ID
- 松弛:''user:U…'' 和 ''channel:C…''
- Discord: ''user:<id>'' and ''channel:<id>''
- 矩阵(插件):''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/组)
自我("我")
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>