update_stream_settings
Modify your live stream's title, description, or privacy settings to control visibility and content across multiple platforms.
Instructions
Update settings for the current stream such as title, description, or privacy settings
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | The stream title | |
| description | No | The stream description | |
| privacy | No | The stream privacy setting |
Implementation Reference
- src/restream-client.ts:144-151 (handler)Core handler function that performs the PATCH request to '/user/stream' endpoint with the provided StreamSettings to update the stream.async updateStreamSettings(settings: StreamSettings): Promise<Stream> { try { const response = await this.axiosInstance.patch<Stream>('/user/stream', settings); return response.data; } catch (error) { throw this.handleError(error, 'Failed to update stream settings'); } }
- src/index.ts:259-272 (handler)MCP server request handler for CallToolRequest of 'update_stream_settings', validates args and delegates to RestreamClient.case 'update_stream_settings': { if (!args) { throw new Error('At least one setting is required'); } const stream = await restreamClient.updateStreamSettings(args); return { content: [ { type: 'text', text: JSON.stringify(stream, null, 2), }, ], }; }
- src/index.ts:101-122 (registration)Registers the 'update_stream_settings' tool with the MCP server, providing name, description, and input schema.{ name: 'update_stream_settings', description: 'Update settings for the current stream such as title, description, or privacy settings', inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'The stream title', }, description: { type: 'string', description: 'The stream description', }, privacy: { type: 'string', enum: ['public', 'private', 'unlisted'], description: 'The stream privacy setting', }, }, }, },
- src/types.ts:45-49 (schema)TypeScript interface defining the structure of stream settings used by the handler.export interface StreamSettings { title?: string; description?: string; privacy?: 'public' | 'private' | 'unlisted'; }