Slack whoami (signed-in account)
Report which Slack account this browser is signed in as: the user's name, email, user id and the active workspace. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Slack scripts.
Input
None
Output
evidence requiredloggedIn requiredname optionalteam optionalemail optionalteamId optionaluserId optionalteamUrl optionalFAQ
List Slack invoices
List Slack billing statements from the workspace's admin billing history. Returns workspace, total and invoices (date, statement, billId, amount, status, description, pdfUrl) — metadata only. Feed a row's pdfUrl (or billId) to slack.com/download_invoice to fetch that statement's PDF. Requires a workspace billing admin; defaults to the primary workspace, or pass workspaceDomain (e.g. acme.slack.com).
Search Slack messages
Full-text search across the workspace's messages, supporting Slack's modifiers (from:@user, in:#channel, before:/after:date, "exact phrase"). One page per call. Requires login.
Send Slack message
Post a message to a channel or DM, identified by name ('social', '#social'), channel/DM id (C…/D…), or a user (@handle or U…) for a direct message. Pass threadTs to reply inside a thread (with broadcast to also send it to the channel). Returns the new message ts, channel id and permalink. Requires login.
