create_media_from_url
Import an image from a URL into Penpot by creating a media object. Provide the file ID and URL to add the image asset.
Instructions
Create a media object from a URL
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>",
"url": "<url>",
"isLocal": "<isLocal>"
},
"name": "create_media_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Optional: Pre-specify media object ID (UUID) | |
| url | Yes | URL of the image to import | |
| name | No | Optional: Custom name for media object | |
| fileId | Yes | File ID | |
| isLocal | Yes | Whether media is local to file |