directory
openclaw directory
Section titled “openclaw directory”針對支援的頻道(聯絡人/對象、群組及「我」)進行目錄查詢。
--channel <name>:頻道 ID/別名(當設定了多個頻道時為必填;若僅設定一個則自動選取)--account <id>:帳號 ID(預設值:頻道預設值)--json:輸出 JSON
directory旨在幫助您尋找可貼上至其他指令的 ID(特別是openclaw message send --target ...)。- 對於許多頻道而言,結果是基於設定的(白名單 / 已設定的群組),而非即時的提供者目錄。
- 預設輸出為以 tab 分隔的
id(有時包含name);請使用--json進行腳本撰寫。
搭配 message send 使用結果
Section titled “搭配 message send 使用結果”openclaw directory peers list --channel slack --query "U0"openclaw message send --channel slack --target user:U012ABCDEF --message "hello"ID 格式(依頻道)
Section titled “ID 格式(依頻道)”- WhatsApp:
+15551234567(DM)、[email protected](群組) - Telegram:
@username或數值聊天 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(me、friend list、group list) 的 thread id (DM/群組)
Self (“me”)
Section titled “Self (“me”)”openclaw directory self --channel zalouserPeers (contacts/users)
Section titled “Peers (contacts/users)”openclaw directory peers list --channel zalouseropenclaw directory peers list --channel zalouser --query "name"openclaw directory peers list --channel zalouser --limit 50Groups
Section titled “Groups”openclaw directory groups list --channel zalouseropenclaw directory groups list --channel zalouser --query "work"openclaw directory groups members --channel zalouser --group-id <id>