update_stream_settings
Modify live stream configurations including title, description, and privacy settings to control how your content appears across multiple streaming 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 the Restream API endpoint '/user/stream' to update the current stream settings using the provided StreamSettings.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/types.ts:45-49 (schema)TypeScript interface defining the input parameters for updating stream settings, matching the tool's input schema.export interface StreamSettings { title?: string; description?: string; privacy?: 'public' | 'private' | 'unlisted'; }
- src/index.ts:102-122 (registration)MCP tool registration defining the name, description, and input schema for 'update_stream_settings'.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/index.ts:259-272 (handler)MCP server dispatch handler for 'update_stream_settings' that validates arguments and delegates to RestreamClient.updateStreamSettings.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), }, ], }; }