Skip to main content
Glama

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
NameRequiredDescriptionDefault
input_nameYesName of the audio input.
volumeYesVolume multiplier: 0.0 (silent) to 1.0 (full).

Implementation Reference

  • 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 });
    }
  • 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"],
      },
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LarsCanGit/OBS-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server