Attach asset
attach_assetAttach an image asset to a markdown review so the viewer serves and renders it at the exact src your draft uses. Survives every source revision.
Instructions
Attach an image to a review so the viewer serves and renders it. Pass the file bytes as content_b64 (base64) and name as the exact src the draft uses (for example "/assets/x.png" or "fig/y.svg"). Attach once; it survives every update_source revision. On the local stdio server you can pass path instead, a local file path the wrapper reads and encodes for you, which keeps large files out of the conversation. A remote server cannot read your files, so it needs content_b64. Returns the stored name and the served url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the opaque review id | |
| name | Yes | the draft <img> src this asset backs (the match key) | |
| path | No | local file path, read and base64-encoded by the local stdio server (not available on a remote server) | |
| content_b64 | No | the file bytes, base64-encoded (required on a remote server) |