slack_user_activity
Fetch a user's Slack messages and replies in a time window, grouped by channel. Optionally include thread expansion and surrounding history for context.
Instructions
Everything one person said or received in a time range, grouped by channel.
Searches messages from and to the user, optionally pulls surrounding channel
history so replies have antecedents, and optionally expands every thread
touched. Returns messages grouped by channel with replies nested under their
parents, plus a stats block.
Prefer this over assembling the same result from slack_search plus slack_channel_history plus slack_thread: it deduplicates across all three passes, which a sequence of separate calls cannot do without replaying every message. Cost scales with the number of channels the user was active in.
Args:
user: Slack handle or user ID. Defaults to the authenticated user.
oldest: Window start — 'YYYY-MM-DD', an epoch, or a relative offset such
as '-7d'. Defaults to one day before latest.
latest: Window end, same formats. A bare date means end-of-day. Defaults
to now.
context_window: Seconds of surrounding channel history to include on
either side of the user's own messages. 0 (the default) fetches no
context; a few thousand seconds gives conversational lead-in.
expand_threads: Fetch replies for threads that were touched.
max_text: Truncate message text to this many characters. None keeps the
full text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | ||
| latest | No | ||
| oldest | No | ||
| max_text | No | ||
| context_window | No | ||
| expand_threads | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||