docs/cli/directory.md
openclaw directoryDirectory lookups for channels that support it (contacts/peers, groups, and “me”).
--channel <name>: channel id/alias (required when multiple channels are configured; auto when only one is configured)--account <id>: account id (default: channel default)--json: output JSONdirectory is meant to help you find IDs you can paste into other commands (especially openclaw message send --target ...).id (and sometimes name) separated by a tab; use --json for scripting.message sendopenclaw directory peers list --channel slack --query "U0"
openclaw message send --channel slack --target user:U012ABCDEF --message "hello"
+15551234567 (DM), [email protected] (group), 120363123456789@newsletter (Channel/Newsletter outbound target)@username or numeric chat id; groups are numeric idsuser:U… and channel:C…user:<id> and channel:<id>user:@user:server, room:!roomId:server, or #alias:serveruser:<id> and conversation:<id>zalouser (plugin): thread id (DM/group) from zca (me, friend list, group list)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>