wave_stop_stream
Stop a live stream by providing its UUID. Use this tool to end an active stream when needed.
Instructions
Stop an active stream by its ID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stream_id | Yes | The UUID of the stream to stop |
Implementation Reference
- src/tools/streams.ts:119-133 (handler)The handler function for the wave_stop_stream tool. It takes a stream_id (UUID), sends a POST request to /api/v1/streams/{stream_id}/stop, and returns the response.
server.tool( "wave_stop_stream", "Stop an active stream by its ID", { stream_id: z.string().uuid().describe("The UUID of the stream to stop"), }, async ({ stream_id }) => { const res = await waveFetch(`/api/v1/streams/${stream_id}/stop`, { method: "POST", }); if (!res.ok) return errorContent(res.status, res.body); return textContent(res.body); }, ); - src/tools/streams.ts:122-124 (schema)The input schema for wave_stop_stream: stream_id is a required UUID string.
{ stream_id: z.string().uuid().describe("The UUID of the stream to stop"), }, - src/tools/streams.ts:119-133 (registration)Registration of the wave_stop_stream tool via server.tool() inside registerStreamTools().
server.tool( "wave_stop_stream", "Stop an active stream by its ID", { stream_id: z.string().uuid().describe("The UUID of the stream to stop"), }, async ({ stream_id }) => { const res = await waveFetch(`/api/v1/streams/${stream_id}/stop`, { method: "POST", }); if (!res.ok) return errorContent(res.status, res.body); return textContent(res.body); }, );