Documentation Index
Fetch the complete documentation index at: https://openclaw.zhcndoc.com/llms.txt
Use this file to discover all available pages before exploring further.
openclaw directory
适用于支持目录查询的频道的目录查找(联系人/对等方、群组,以及“我”)。
常用标志
--channel <name>:频道 ID/别名(配置了多个频道时必填;仅配置一个频道时自动使用)--account <id>:账户 ID(默认:频道默认值)--json:以 JSON 输出
说明
directory用于帮助你找到可以粘贴到其他命令中的 ID(尤其是openclaw message send --target ...)。- 对于许多频道,结果是基于配置的(允许列表 / 已配置的群组),而不是来自实时提供者目录。
- 已安装的频道插件仍然可能省略目录支持;在这种情况下,命令会报告不受支持的目录操作,而不是重新安装插件。
- 默认输出为由制表符分隔的
id(有时还有name);脚本使用请加--json。
与 message send 结合使用结果
ID 格式(按频道)
- WhatsApp:
+15551234567(DM),1234567890-1234567890@g.us(group),120363123456789@newsletter(Channel/Newsletter outbound target) - Telegram:
@username或数字聊天 ID;群组为数字 ID - Slack:
user:U…和channel:C… - Discord:
user:<id>和channel:<id> - Matrix (plugin):
user:@user:server,room:!roomId:server, or#alias:server - Microsoft Teams (plugin):
user:<id>和conversation:<id> - Zalo (plugin): user id(Bot API)
- Zalo Personal /
zalouser(plugin): 来自zca的 thread id(DM/group)(me、friend list、group list)