set_context
Initialize conversation context by specifying a Zulip stream and topic to fetch recent message history for AI agents or bots.
Instructions
Initialize the session context for a conversation. Call this once at the start of a session to set where you're chatting.
Args: stream: The name of the Zulip stream/channel. topic: The topic name within the stream. num_messages: Number of recent messages to fetch for context (default 20).
Returns: Confirmation with recent message history to get you up to speed.
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": "<stream>",
"topic": "<topic>"
},
"name": "set_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stream | Yes | ||
| topic | Yes | ||
| num_messages | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |