screenshot_by_uid
Capture a screenshot of a specific browser element by its UID as base64 PNG, or save it directly to a file for inspection and debugging.
Instructions
Capture element screenshot by UID as base64 PNG.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"uid": "<uid>"
},
"name": "screenshot_by_uid"
}
}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-mcp/output/). Relative paths resolve against the current working directory. |