Upload image
upload_imageUpload a picture to a site from its web address, so pages can use it. url: a JPEG, PNG, WebP or GIF at an http(s) address, up to 10 MB (the type is read from the picture). A file on the person’s own machine goes through start_image_upload (area media). Or found: a find_images (area media) picture’s source — the server copies it and records the credit Commons states. Pictures only (a video: set_video (area media)). Returns the assetId (setNodeFields {assetId}, an imageGallery’s images, a video’s posterAssetId). source, author, license: a url’s credit; found needs none. Full reference: get_reference {topic:"pictures"}.
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": {
"siteId": "<siteId>"
},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | An http(s) address to download the picture from | |
| found | No | A find_images source or any Commons file page, copied with Commons’ credit | |
| author | No | Who made the picture | |
| siteId | Yes | Site id | |
| source | No | Where the picture came from: an http(s) link to the page that states its licence (not just the file URL) | |
| license | No | Its licence, free text, e.g. "CC0 1.0" or "Public domain" | |
| filename | No | Name to list it under; defaults to the last part of the address |