Upload a local image to Penpot
penpot_upload_imageUpload an image from your computer or brand kit into the open Penpot file, storing it under a key so it can be applied as a fill.
Instructions
Uploads an image from this computer (for example a photo in the brand kit's assets/ or style/ folder) into the open Penpot file and keeps the result in the plugin's storage under storage_key, ready to use as a fill: {fillOpacity: 1, fillImage: storage[storage_key]}.
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": {
"file": "<file>",
"storage_key": "<storage_key>"
},
"name": "penpot_upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | A path, or a path inside the brand kit such as assets/photo.jpg | |
| name | No | ||
| storage_key | Yes | e.g. p03_photo |