Upload an image
traceable_image_uploadUpload an image to a document and get back the src to place it with. Pass the image as base64 in content with its name. PNG, JPEG, GIF, WebP or AVIF, detected from the bytes, not the name; SVG is not accepted. At most 3 MB. The result's trmd is : write it in a text row, a table cell or an ID row's text cell with traceable_block_write, traceable_block_update, traceable_segment_write or traceable_grid_cell, adding {width=60%,align=center} after it to size it. Uploading places nothing by itself. A write may only place an image the application holds: a src on another site or a data: URI is refused. Calling it twice uploads twice. In an organisation under controlled releases this tool works once an admin turns it on in Org settings > Releases.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | Alternative text for the image; defaults to the file name | |
| name | Yes | The file name, e.g. "system-context.png" | |
| content | Yes | The image, base64-encoded (a data: URL prefix is accepted) | |
| documentId | Yes | The document the image will be placed in |