Upload an image
upload_imageStore an image in the site's draft, resized for the web. Returns the path to use in an . Takes a public image address (url, which Clay downloads) or the image bytes (base64).
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>"
},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | a public http(s) address of the image; Clay downloads it | |
| name | No | file name, e.g. hero.jpg (taken from the url when left out) | |
| site | Yes | the site's clay.site name (subdomain) or its id | |
| base64 | No | the image bytes, base64 (only when there is no url) |