Stream Visual
stream_visualConfigure the stream’s visualizer and frame in one call—select page, spectrum, waves, scope, or none; set colors, background/window capture, chat overlay, resolution, fps, and bitrate to avoid repeated encoder restarts.
Instructions
Set the stream's picture with raw numbers. While live this restarts the encoder: a 2-3 s blip on every site, so set everything in one call. mode: page (the visual page, drawn from the set's levels as stream_scene sets it: the one to change live with no blip), cqt (a piano-roll spectrum), spectrum (bars), waves, scope (a stereo vector scope) or none. colors: ['#rrggbb', '#rrggbb'] for spectrum and waves. background: '#rrggbb', or image: a still behind it, or window: the title of a window to capture (a page the agent draws, the VR stage mirror). area: [x, y, w, h] of the visualizer, fractions of the frame. chat_overlay: the newest chat line in the corner. width/height/fps: 1280x720 at 30 by default. video_kbps: 4500 (Twitch takes 6000 at most). encoder: auto (NVENC when the GPU has it), nvenc or x264. capture: how a window (or the page) is captured: auto (wgc where ffmpeg has it), wgc (Windows Graphics Capture: GPU-drawn pages such as the stage's WebGL, and a covered window, come through; the page draws on the GPU) or gdi (gdigrab: a GPU-drawn window comes out blank, so the page draws in software). A Chrome or Edge window is cropped to its web content. Look at the result with stream_look. An encoder that starts three times in a row with no picture stops the stream; stream_status says why and what to call next.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "stream_visual"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | ||
| area | No | ||
| mode | No | ||
| image | No | ||
| width | No | ||
| colors | No | ||
| height | No | ||
| window | No | ||
| capture | No | ||
| encoder | No | ||
| font_size | No | ||
| audio_kbps | No | ||
| background | No | ||
| text_color | No | ||
| video_kbps | No | ||
| chat_overlay | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |