upload_image
Prepare an image upload for the open project. Returns a one-time uploadUrl. POST the image as multipart form field "file" to that URL. The response JSON url is the stored image. Use it with update_screenshot imageUrl, add_asset src, set_project_background, or img src and CSS url() inside add_div or update_div html. For card images, use type asset. The link works once; if the POST fails, call this tool again. Pass base64 only when you cannot make that HTTP request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| base64 | No | Optional raw base64 or data URL. Omit this and POST the file to uploadUrl. | |
| filename | Yes | File name, 1 to 120 characters, no path. Use a png, jpg, jpeg, or webp extension. For type asset, svg is also allowed. |