Upload a website photo
upload_site_photoOwners only (needs sign-in): Add one JPEG, PNG or WebP to the website photo library, and use the returned url in uploaded HTML. Do this for every image in a design before upload_site_pages, including any embedded in the html as data: addresses. Pass file_base64 and file_type for a photo up to about 700 KB (requests stop at 1 MB). Over REST, POST the raw bytes to /api/v1/upload_site_photo with Content-Type and file_name in the query, up to 8 MB. A larger photo with a public https address can go straight in uploaded HTML, and is copied in, up to 8 MB.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_site_photo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | No | ||
| file_type | No | ||
| file_base64 | No |