sb_media_upload
Upload an image from a local path, URL, or photo search to the site media library and return its URL for use in sb_set. Use query and pick to add one or several real photographs.
Instructions
Put an image into the media library and get its URL back, ready for sb_set. Takes a local path, a URL, or a SEARCH — query returns real photographs with their own descriptions, and pick uploads the one you chose, or several at once to stock a site you just built. The only way to add an image.
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": "sb_media_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Fetched, then uploaded | |
| name | No | ||
| path | No | A file on this machine | |
| pick | No | The id of the search result to upload — or several ids, which stocks a site in one call | |
| paths | No | Several files; one failing does not stop the rest | |
| query | No | Search real photographs; read the descriptions, then pick | |
| dry_run | No | ||
| site_id | No | ||
| folder_id | No | ||
| orientation | No |