stream-message
Opens a WebSocket connection to send a prompt and stream the assistant's reply in real time, with automatic fallback to REST polling.
Instructions
One-shot streaming chat: opens a WSS connection, sends the prompt, and streams the assistant reply in real time. Intermediate progress is reported via notifications/progress (when the client supplies a progressToken); the final tool result contains the complete text. Falls back to REST polling on transport failure unless mode: "stream" is passed explicitly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Override the streaming strategy. Default "auto" (WSS with polling fallback). | |
| model | No | Initial model for the chat. | |
| scope | No | text | |
| prompt | Yes | The prompt text to send. | |
| ai_name | No | ||
| timeout | No | Max wait time in milliseconds. | |
| model_type | No |