akb_put_image
Upload a local PNG, JPEG, GIF, or WebP (max 10 MiB) and get a stable URL plus ready-to-paste Markdown for inline use in an AKB Markdown document.
Instructions
Upload a local PNG, JPEG, GIF, or WebP (maximum 10 MiB) for inline use in an AKB Markdown document. Returns a stable /api/assets/{uuid} URL and a ready-to-paste markdown image expression. For a new document, place it with akb_put. For an existing document, prefer a targeted akb_edit; akb_update(content=...) replaces the entire body and must never receive only an image fragment. Images are immutable: upload a replacement and edit the Markdown reference. This creates a hidden document attachment, not a standalone File; use akb_put_file when the binary should appear in browse/search. If the document write fails, call akb_discard_image with the returned URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | No | Vault name. Required unless `parent` is given. | |
| parent | No | Vault or collection URI (`akb://{vault}` or `akb://{vault}/coll/{path}`). The image is owned by that vault; the collection portion only identifies the vault. | |
| alt_text | No | Accessible Markdown alt text. Defaults to the filename without its extension. | |
| file_path | Yes | Absolute path to the local image file (maximum 10 MiB). | |
| mime_type | No | Optional MIME override for extensionless or unusually named files. The server verifies it against decoded bytes. | |
| _vault_skill_ack | No | Opaque acknowledgement from vault_skill.ack_token. Apply the guide, then retry the unchanged operation with this value. The bundled proxy fills it on an exact retry. |