Upload a file
upload_mediaAdd a listing photo, logo or headshot to the account from an https link (JPG, PNG, WebP or HEIC, up to 25 MB) or base64 (up to about 3 MB of file). Returns a storageId for add_photos, replace_photo, set_logo or set_headshot.
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": {
"listingId": "<listingId>",
"kind": "<kind>",
"filename": "<filename>"
},
"name": "upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | An https link the server fetches. | |
| kind | Yes | What the file is for: photo (a listing photo), logo or headshot. | |
| base64 | No | The file's bytes, base64 encoded. | |
| filename | Yes | The file's name, like 'kitchen.jpg'; used to label it. | |
| listingId | Yes | Listing id from list_listings. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No |