Upload Asset
upload_assetUpload an image from a local file or base64 data and receive an asset:// reference to embed in markdown.
Instructions
Upload a single image as an asset (reserve -> presigned PUT -> complete) and return an 'asset://' reference you can embed in markdown image syntax: . Provide the image as EITHER
data_base64 (inline base64) OR file_path (a local file to read) — exactly one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The .md document path this asset is associated with (used for quota/scoping). | |
| filename | No | Original file name. Optional with `file_path` (defaults to its basename). | |
| file_path | No | Absolute or relative local filesystem path to the image file to read and upload. Provide EITHER this OR `data_base64`, not both. | |
| data_base64 | No | Base64-encoded raw image bytes. Provide EITHER this OR `file_path`, not both. | |
| content_type | No | MIME type, e.g. 'image/png'. Optional with `file_path` when the extension is recognized (png/jpg/jpeg/gif/webp/avif). |