list_topics
Retrieve recent topics in a stream to discover conversation threads before fetching messages. Each topic includes its name and last message ID.
Instructions
List topics (threads) in a stream, most recent first.
Use this to discover what conversations exist in a stream before fetching messages. Each topic is like a thread/subject line.
Args: stream_id: The numeric ID of the stream. Use get_stream_id to look this up.
Returns: JSON list of topics with names and last message IDs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"stream_id": "<stream_id>"
},
"name": "list_topics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stream_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |