Search messages
searchFind full-text matches in locally indexed, decrypted Rocket.Chat messages, including encrypted rooms. Filter by room, author, date, or thread; results show highlighted snippets and permalinks.
Instructions
Full-text search over the locally indexed, decrypted messages of all rooms (including end-to-end encrypted ones). All words must match; accents are ignored; append * for prefix search (deploy*). Filter by rooms, authors (usernames), date range or thread. Results include a «highlighted» snippet, thread info and permalink. When specific unencrypted rooms are given, the Rocket.Chat server search is also queried and merged (source: index | server | index+server). Stale rooms are synced first unless refresh=false; if Rocket.Chat is unreachable the local index still answers and notes says so.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Limit to messages by these usernames. | |
| after | No | Only messages at or after this instant. | |
| limit | No | Maximum results (default 20). | |
| query | Yes | Words to search for, e.g. "deploy runbook" or "postgres failover". | |
| rooms | No | Limit to these rooms. | |
| before | No | Only messages strictly before this instant. | |
| refresh | No | Sync stale rooms before searching (default true). | |
| thread_id | No | Limit to one thread (root id). | |
| include_server_search | No | Also query Rocket.Chat server search for unencrypted rooms (default: only when `rooms` is given; unencrypted rooms are indexed locally anyway). |