screenshot_by_uid
Capture a screenshot of a specific web element by its UID, returned as base64 PNG or saved to a file.
Instructions
Capture element screenshot by UID as base64 PNG.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Element UID from snapshot | |
| saveTo | No | Save the screenshot to a file instead of returning it as image data in the response. Pass a file path, an existing directory (generated file inside), or true (generated file under ~/.firefox-devtools-mcp/output/). Relative paths resolve against the current working directory. |