Skip to main content
Glama

save_screenshot

Capture the current OBS Studio output as an image file in PNG, JPG, or BMP format at a specified file path.

Instructions

Save a screenshot of the current OBS output to a file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesAbsolute path where the screenshot should be saved (e.g. /tmp/obs-shot.png).
image_formatNoImage format: png, jpg, bmp. Defaults to png.

Implementation Reference

  • Handler implementation for the save_screenshot tool. It uses obs-websocket's SaveSourceScreenshot command to capture the current scene.
    case "save_screenshot": {
      await obs.call("SaveSourceScreenshot", {
        sourceName: (await obs.call("GetSceneList")).currentProgramSceneName,
        imageFormat: args.image_format ?? "png",
        imageFilePath: args.file_path,
      });
      return ok({ saved_to: args.file_path });
    }
  • Tool definition and input schema for save_screenshot.
      name: "save_screenshot",
      description: "Save a screenshot of the current OBS output to a file.",
      inputSchema: {
        type: "object",
        properties: {
          file_path: {
            type: "string",
            description:
              "Absolute path where the screenshot should be saved (e.g. /tmp/obs-shot.png).",
          },
          image_format: {
            type: "string",
            description: "Image format: png, jpg, bmp. Defaults to png.",
          },
        },
        required: ["file_path"],
      },
    },

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