Hotlinked images are a slow leak. A post shows pictures loaded straight off someone else’s server, and the day that server moves the file, renames it, or blocks the referrer, your post shows a row of broken boxes. You did not do anything wrong, but the page looks abandoned. The fix is to host the images yourself, which by hand means downloading each one, uploading it, and pasting the new URL back in.
This runs that chore for you and still waits for your yes before it saves a thing.
[This post: https://example.com/my-post/] pulls its images from otherpeople's servers, and I want them hosted here instead. Start read-only:read the post, list every image whose URL points at a domain that is notmine, and show me that list with nothing changed yet.
Wait for my yes. Only after I approve, go image by image: fetch eachexternal image into the media library with the upload-from-URL tool (HTTPSlinks to jpg, png, gif and webp are fine; SVG and plain http links will berejected, so list those for me), then swap that old external URLfor the new local one. A literal find-and-replace will be refused because theURL sits inside an image tag, so read the post as raw block markup and replaceonly the image block, sending exactly one block and passing its path andcore/image as the expected block name, with the new local URL and attachmentid. If an image is not in a block, or its block is not core/image, list it asskipped. Work in small batches and show me each batch, with the old blockmarkup beside the new one, before it saves, and leave everything except theimage URLs alone. When you finish, give me the list of every image you pulledin and every URL you replaced.Why this is safe to run
The first pass is reads. Reading the post and picking out the off-site image URLs changes nothing, so you approve the exact list before any file is uploaded or any URL is swapped.
The write half is deliberately narrow. The upload-from-URL ability fetches only HTTPS links to public hosts, adds the images to your library and rejects SVG outright, so nothing scriptable sneaks in through an image. The swap is one Replace block call per image block. Replace block checks the block name at that path before it writes, and the old markup is in the reply, so a wrong swap can be put back. The Changes tab can revert a swap unless the post has been edited after it. The uploaded copies stay in your library either way, because uploads are not recorded. As always, the media and content write abilities stay off until you enable them, every call is checked against the bound user’s capability, and every upload and edit is written to the Activity Log.
Already connected? Skip the paste. Ask your agent for the “localize hotlinked images” recipe, or just point it at the post, and it runs the same find-approve-swap flow on your own install.