Upload image or file
upload_assetAdd an image, icon, PDF, font or video to the draft, from a public URL or base64 data. Reference it in pages as "/". Photos (JPG, PNG, WebP, up to 20 MB from a URL) are cleaned up automatically: turned upright, location and camera data removed, resized to at most 2000 px, and smaller WebP copies made that phones load automatically.
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": {
"site": "<site>",
"path": "<path>"
},
"name": "upload_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| path | Yes | e.g. "img/hero.jpg" | |
| site | Yes | Site slug (e.g. "kopitiam-muar") or id | |
| base64 | No |