You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 59a84d9
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/sbot/prompts/tools/channel/list.txt
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,12 @@
1
1
Discover channels, sessions, and users known to this bot. Reads from the bot's local config / database — no platform API permission required.
2
2
3
3
- type="channel": list all configured channels (id, type, name, caps). channel_id is ignored.
4
-
- type="session": list sessions in channel_id; defaults to all channels. Entries with current="1" are on the same channel as the current conversation — prefer them when names collide.
4
+
- type="session": list sessions in channel_id; defaults to all channels.
5
5
- type="user": list users in channel_id; defaults to all channels.
6
6
- type="session_and_user": list both sessions and users (under the same channel_id / name_pattern filter) in a single call. Use when you don't yet know whether to address a session or a user.
7
7
8
+
current="1" on a <session>/<user> means the entry lives on the same channel that THIS conversation is happening on — e.g. if the user is talking to you via Lark right now, every Lark session/user gets current="1". When the user mentions a name without specifying which channel and the name exists on multiple channels, prefer the current="1" entry — it's almost always what they meant.
9
+
8
10
caps (only on <channel>) is a comma-separated capability set. Tokens:
9
11
text — channel_send_message works on sessions of this channel
10
12
file — channel_send_file works on sessions of this channel
0 commit comments