Search Chat
Your conversation restarts empty, but the chat log is kept. Before you tell
anyone you cannot find an earlier conversation or request, search it.
bash execute.sh --query "video plan"
bash execute.sh --query "video" --channel '#awesome-videos' --from 2026-10-09 --to 2026-10-09
| Flag | Required | Description |
|------|----------|-------------|
| --query / -q | Yes | Keywords; every word must appear (case-insensitive) |
| --channel / -c | No | Only this channel: '#name', name or id |
| --from / --to | No | Date range, YYYY-MM-DD (a bare --to date includes that whole day) or a timestamp |
| --limit / -l | No | Most hits (default 10, max 30) |
Output: `{ "data": { "count": N, "hits": [ { "id", "time", "channelId", "channel",
"sender", "text", "threadId" } ] } }, newest first. text` is trimmed to
300 characters. threadId is the thread root, or null for a top-level message.
- You only see what you could see in chat: your DMs, the channels and rooms you
are a member of, and messages that @-mention you.
- Try a shorter or different keyword when nothing comes back; CJK text is
matched as written, without word splitting.
- To read around a hit, search again with
--channeland a one-day range.
What it does not search
Posts an agent makes with reply --work-item, --new-thread or --ticket are in this history when the Slack channel is a team room or an agent DM. In any other Slack channel they go to Slack only and are not searched; the result carries a note saying so. A missing hit does not mean such a post failed: the reply call itself returns slackChannelId and messageTs as proof it landed. Ask the poster for those, or read the Slack thread, before posting the answer again.