Take Screenshot of a Source or Scene
obs_take_screenshotCaptures the current OBS scene or source as a screenshot, returning the image inline for visual checks or saving it to a specified file path for later use.
Instructions
Capture what a scene or source looks like right now.
Without save_path the image is returned so it can be looked at directly, e.g. to check that the game capture is not black before recording. With save_path OBS writes the image to that file and the path is returned. Defaults to the current program scene.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "obs_take_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Image width in pixels; height keeps the aspect ratio. Defaults to 960 inline, source size when saving | |
| overwrite | No | Allow replacing an existing file at save_path | |
| save_path | No | Absolute file path to save to, ending in .png or .jpg. Omit to get the image back inline | |
| source_name | No | Scene or input to capture. Defaults to the current program scene |