Get screenshot
get_screenshotPNG screenshot of a frame, rendered exactly as in the editor. nodeId zooms on one element, region {y, height} shows one slice of a long page, and scale 2 or 3 shows details (alignment, icons) at phone pixel density.
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": {
"fileId": "<fileId>",
"frameId": "<frameId>"
},
"name": "get_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Pixel density, decimals allowed (3 = iPhone, 2.625 = Pixel). | |
| fileId | Yes | ||
| nodeId | No | Crop to this element of the frame; id#2 for its 2nd copy in a template's rows; instanceId>nodeId for an element of a component drawn by an instance (the component's own element id alone works when the frame has one such instance). | |
| region | No | Only this box of the frame, in frame CSS px: {y, height} (x and width default to the whole width). For long pages: inspect them in slices, e.g. {y: 0, height: 1200}, then {y: 1200, height: 1200}… | |
| frameId | Yes |