Skip to content

Cookbook › Images

Add an image from a link

Images1 minuteDraftsTested 15 Oct 2026
Paste into ChatGPT or ClaudeAdd this image to my media library as “Spring shop window”, with the alt text “Shop window with spring flowers”: https://example.com/window.jpg

Creates a draft. Standard and Trusted do this on their own; Read only can’t.

  1. Your assistant calls upload_media with the address, a title and the alt text.
  2. WordPress downloads the image and adds it to the media library as the user your assistant acts as.
  3. Your assistant tells you the new image’s ID, which it can use for a featured image.
  • “…then set it as the featured image of my spring post.”
  • Public HTTPS addresses only: JPEG, PNG, GIF or WebP, up to 5 MB. Not private or local links. For SVG, see Add an SVG logo or icon.
  • The connected user needs permission to upload files.