export_object
Export a specific design object from Penpot as an image by specifying file, page, and object IDs. Supports formats like PNG and SVG with adjustable scale for precise output.
Instructions
Export a Penpot design object as an image.
Args:
file_id: The ID of the Penpot file
page_id: The ID of the page containing the object
object_id: The ID of the object to export
export_type: Image format (png, svg, etc.)
scale: Scale factor for the exported image
Input Schema
Name | Required | Description | Default |
---|---|---|---|
export_type | No | png | |
file_id | Yes | ||
object_id | Yes | ||
page_id | Yes | ||
scale | No |
Input Schema (JSON Schema)
{
"properties": {
"export_type": {
"default": "png",
"title": "Export Type",
"type": "string"
},
"file_id": {
"title": "File Id",
"type": "string"
},
"object_id": {
"title": "Object Id",
"type": "string"
},
"page_id": {
"title": "Page Id",
"type": "string"
},
"scale": {
"default": 1,
"title": "Scale",
"type": "integer"
}
},
"required": [
"file_id",
"page_id",
"object_id"
],
"title": "export_objectArguments",
"type": "object"
}