{ "title": "`openclaw directory`", "content": "Directory lookups for channels that support it (contacts/peers, groups, and “me”).\n\n* `--channel `: channel id/alias (required when multiple channels are configured; auto when only one is configured)\n* `--account `: account id (default: channel default)\n* `--json`: output JSON\n\n* `directory` is meant to help you find IDs you can paste into other commands (especially `openclaw message send --target ...`).\n* For many channels, results are config-backed (allowlists / configured groups) rather than a live provider directory.\n* Default output is `id` (and sometimes `name`) separated by a tab; use `--json` for scripting.\n\n## Using results with `message send`\n\n## ID formats (by channel)\n\n* WhatsApp: `+15551234567` (DM), `1234567890-1234567890@g.us` (group)\n* Telegram: `@username` or numeric chat id; groups are numeric ids\n* Slack: `user:U…` and `channel:C…`\n* Discord: `user:` and `channel:`\n* Matrix (plugin): `user:@user:server`, `room:!roomId:server`, or `#alias:server`\n* Microsoft Teams (plugin): `user:` and `conversation:`\n* Zalo (plugin): user id (Bot API)\n* Zalo Personal / `zalouser` (plugin): thread id (DM/group) from `zca` (`me`, `friend list`, `group list`)\n\n## Peers (contacts/users)", "code_samples": [ { "code": "## ID formats (by channel)\n\n* WhatsApp: `+15551234567` (DM), `1234567890-1234567890@g.us` (group)\n* Telegram: `@username` or numeric chat id; groups are numeric ids\n* Slack: `user:U…` and `channel:C…`\n* Discord: `user:` and `channel:`\n* Matrix (plugin): `user:@user:server`, `room:!roomId:server`, or `#alias:server`\n* Microsoft Teams (plugin): `user:` and `conversation:`\n* Zalo (plugin): user id (Bot API)\n* Zalo Personal / `zalouser` (plugin): thread id (DM/group) from `zca` (`me`, `friend list`, `group list`)\n\n## Self (“me”)", "language": "unknown" }, { "code": "## Peers (contacts/users)", "language": "unknown" }, { "code": "## Groups", "language": "unknown" } ], "headings": [ { "level": "h2", "text": "Common flags", "id": "common-flags" }, { "level": "h2", "text": "Notes", "id": "notes" }, { "level": "h2", "text": "Using results with `message send`", "id": "using-results-with-`message-send`" }, { "level": "h2", "text": "ID formats (by channel)", "id": "id-formats-(by-channel)" }, { "level": "h2", "text": "Self (“me”)", "id": "self-(“me”)" }, { "level": "h2", "text": "Peers (contacts/users)", "id": "peers-(contacts/users)" }, { "level": "h2", "text": "Groups", "id": "groups" } ], "url": "llms-txt#`openclaw-directory`", "links": [] }