screenshot_by_uid
Screenshot a web element by its UID, returning a base64 PNG or saving it to a file for debugging and testing.
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. |