List WordPress Media
wordpress_mediaBrowse the media library of a connected WordPress site: images already uploaded, with their id, URL, alt text and dimensions.
Search by name to find an existing image instead of uploading a duplicate. The returned id is what you pass as featured_media to wordpress_create_post / wordpress_update_post.
media_id returns ONE image in full: file size in bytes plus every intermediate size WordPress generated (medium, medium_large, large, theme sizes) with its real width, height and source_url, and the srcset WordPress itself would emit. That is what makes a hero/LCP image fixable: without the real list you would have to GUESS the "-768x347.jpg" style filenames, and a wrong guess puts a 404 on a live page. Use the returned srcset rather than building one by hand.
return_image=true (with a media_id) actually SHOWS you the picture: the server fetches the image bytes itself and returns a downscaled (max 512px) preview as an image you can see in chat, instead of just a URL. Use it to match an existing image's style before creating new ones, or to confirm a file is the one you meant. If the server cannot fetch the bytes (site behind a WAF, etc.) it returns the URL and the reason instead.
check_url asks the SITE to HEAD one of its own URLs and returns status, content type and length — for verifying an image variant exists, or checking a link or redirect. Only URLs on that same site are allowed. Needs Opus Growth Connector 0.6.1 or newer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | ||
| page | No | ||
| search | No | ||
| media_id | No | ||
| per_page | No | ||
| site_url | No | ||
| check_url | No | ||
| return_image | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||