> ## Documentation Index
> Fetch the complete documentation index at: https://openclaw.veiseule.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# directory

# `openclaw directory`

Wyszukiwanie w katalogu dla kanałów, które to obsługują (kontakty/peers, grupy oraz „ja”).

## Wspólne flagi

* `--channel <name>`: identyfikator/alias kanału (wymagany, gdy skonfigurowano wiele kanałów; automatyczny, gdy skonfigurowano tylko jeden)
* `--account <id>`: identyfikator konta (domyślnie: domyślne konto kanału)
* `--json`: wyjście JSON

## Uwagi

* `directory` ma pomóc w znalezieniu identyfikatorów, które można wkleić do innych poleceń (zwłaszcza `openclaw message send --target ...`).
* Dla wielu kanałów wyniki są oparte na konfiguracji (listy dozwolonych / skonfigurowane grupy), a nie na katalogu dostawcy w czasie rzeczywistym.
* Domyślne wyjście to `id` (a czasem `name`) rozdzielone tabulatorem; do skryptów użyj `--json`.

## Używanie wyników z `message send`

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw directory peers list --channel slack --query "U0"
openclaw message send --channel slack --target user:U012ABCDEF --message "hello"
```

## Formaty ID (według kanału)

* WhatsApp: `+15551234567` (DM), `1234567890-1234567890@g.us` (grupa)
* Telegram: `@username` lub numeryczny identyfikator czatu; grupy mają numeryczne identyfikatory
* Slack: `user:U…` oraz `channel:C…`
* Discord: `user:<id>` oraz `channel:<id>`
* Matrix (wtyczka): `user:@user:server`, `room:!roomId:server` lub `#alias:server`
* Microsoft Teams (wtyczka): `user:<id>` oraz `conversation:<id>`
* Zalo (wtyczka): identyfikator użytkownika (Bot API)
* Zalo Personal / `zalouser` (wtyczka): identyfikator wątku (DM/grupa) z `zca` (`me`, `friend list`, `group list`)

## Self („me”)

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw directory self --channel zalouser
```

## Peerzy (kontakty/użytkownicy)

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw directory peers list --channel zalouser
openclaw directory peers list --channel zalouser --query "name"
openclaw directory peers list --channel zalouser --limit 50
```

## Grupy

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw directory groups list --channel zalouser
openclaw directory groups list --channel zalouser --query "work"
openclaw directory groups members --channel zalouser --group-id <id>
```
