set_volume
Adjust audio input volume in OBS Studio by specifying the input name and volume level from 0.0 (silent) to 1.0 (full).
Instructions
Set the volume of an audio input (0.0 – 1.0, linear mul).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_name | Yes | Name of the audio input. | |
| volume | Yes | Volume multiplier: 0.0 (silent) to 1.0 (full). |
Implementation Reference
- obs-mcp-server.js:507-513 (handler)Handler implementation for the set_volume tool. Calls obs.call("SetInputVolume") with the provided input name and volume multiplier.
case "set_volume": { await obs.call("SetInputVolume", { inputName: args.input_name, inputVolumeMul: args.volume, }); return ok({ input: args.input_name, volume: args.volume }); } - obs-mcp-server.js:176-193 (schema)Tool registration for set_volume, including the input schema defining input_name (string) and volume (number).
{ name: "set_volume", description: "Set the volume of an audio input (0.0 – 1.0, linear mul).", inputSchema: { type: "object", properties: { input_name: { type: "string", description: "Name of the audio input.", }, volume: { type: "number", description: "Volume multiplier: 0.0 (silent) to 1.0 (full).", }, }, required: ["input_name", "volume"], }, },