images

deleteImageInDocument

Delete an image: removes the stored file, the database record, AND the image from the document body — both the IMAGE marker in the markdown and the image node in the document's rich-text content, so the picture stops appearing on every read. Deleting an image the document still references is the point of this tool; do not hand-edit the marker out with editDocument, which removes the reference but leaves the file and record behind.

post/tools/deleteImageInDocument

Request

  • Base URL: https://api.stablebaseline.io/functions/v1/cloud-serve/api/v1
  • URL: https://api.stablebaseline.io/functions/v1/cloud-serve/api/v1/tools/deleteImageInDocument
  • Auth: HTTP bearer

Request body

imageIdstring required

Image ID from IMAGE_OMITTED markers.

versionTimestampnumber

Optional document optimistic-lock token; validated when provided. (Alias accepted: documentVersionTimestamp.)

Response

Tool result (shape varies per tool — refer to the tool's docs for the exact return value).

object required

Changes

No recorded changes to this operation across all 1 revision of this API.