obs_save_screenshot
Save a scene or source frame directly to a file on disk and return the path, avoiding large base64 data in conversation.
Instructions
Write a frame of a scene or source straight to a file on disk, and return the path. Use this instead of the image-returning screenshot tool whenever the picture is for a FILE - a thumbnail, a clip poster, a before/after pair, anything sampled on a loop. That tool base64s the whole image back through the conversation, which for a 1080p frame is megabytes of context spent on something nobody is going to look at. This one costs a path. Keep using the other one when you personally need to SEE the frame to judge framing or spot a black camera. TRAPS: (1) OBS writes the file itself, so imageFilePath is resolved on the machine running OBS, not wherever this MCP server lives, and it must be absolute. Point it at a directory that already exists. (2) imageWidth and imageHeight are 'scale to inner' - the aspect ratio is kept and the smaller ratio wins, so passing both does not crop, it fits. Pass one, or neither for native resolution. (3) imageFormat must be one this OBS build compiled in; png, jpg and webp are the safe ones, and GetVersion's supportedImageFormats is the real list. (4) A source that is not currently rendering gives you a black or stale frame, not an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imageWidth | No | Optional. 8-4096. | |
| sourceName | Yes | Scene or source name. The current program scene captures what viewers see. | |
| imageFormat | No | Default png. Use jpg or webp for anything sampled repeatedly. | |
| imageHeight | No | Optional. 8-4096. | |
| imageFilePath | Yes | Absolute path ON THE OBS MACHINE, with extension, e.g. /path/to/frame.png (or C:/path/to/frame.png on Windows) | |
| imageCompressionQuality | No | 0 = smallest file, 100 = uncompressed, -1 = OBS default. Default -1. |