request_image_upload
Request a short-lived upload grant for ONE image file — step 1 of attaching a photo (any vertical/role). Use it when the user wants a photo on a new listing (then create_listing) or added to an existing one (then update_listing_images) — call it once per image, maximum 6 images per listing. Do not use it when you only have an image URL: it needs the raw file bytes (JPEG, PNG or WebP, up to 10 MB), and it attaches nothing by itself. Returns { key, upload_url, upload_token, headers_required }: PUT the raw image bytes to upload_url with exactly those headers, then pass the returned key in create_listing's images array or update_listing_images' add array. A key whose bytes were never uploaded fails later with image_not_uploaded. Images are AI-moderated for content safety before the listing goes live. Requires the user to be connected to Teppek (authenticated).
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": {
"content_type": "<content_type>",
"file_size": "<file_size>"
},
"name": "request_image_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_size | Yes | Exact file size in bytes, at most 10485760 (10 MB). Example: 2097152 for a 2 MB file. | |
| content_type | Yes | MIME type of the image file. Example: "image/png". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| upload_url | No | ||
| upload_token | No | ||
| headers_required | No |