Capture canvas region image
easyeda_canvas_capture_regionCapture a specific rectangular canvas region as a PNG by zooming to it; oversized images are downsampled without cropping to keep the full area.
Instructions
Zoom to a rectangular document/canvas region and capture it as PNG. This moves the visible viewport. Oversized PNGs are downsampled without cropping, preserving the complete requested region.
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": {
"left": "<left>",
"right": "<right>",
"top": "<top>",
"bottom": "<bottom>"
},
"name": "easyeda_canvas_capture_region"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | Yes | First vertical edge in document/canvas coordinates. | |
| left | Yes | First horizontal edge in document/canvas coordinates. | |
| right | Yes | Second horizontal edge; either edge order is accepted. | |
| tabId | No | ||
| bottom | Yes | Second vertical edge; either edge order is accepted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| captured | Yes | ||
| file_name | No | ||
| mime_type | No | ||
| byte_length | No | ||
| downsampled | No | ||
| image_base64 | No | ||
| not_available | No | ||
| image_dimensions | No | ||
| payload_budget_bytes | No | ||
| original_image_dimensions | No |