wp_generate_image tool reference for media workflows
Writegenerates an image with AI and saves it as a WordPress attachment. It uses the provider configured in Multimedia.
Description
generates an image with AI and saves it as a WordPress attachment. It uses the provider configured in Multimedia.
What it is for
- Creating featured images.
- Generating assets for posts, products, or campaigns.
Example use case
creating a blog hero image.
Sample prompt
Generate a clean illustrated hero image for an article about WordPress backups and save it to the media library.
Sample response
{
"tool": "wp_generate_image",
"status": "ok",
"updated": true
}
What does wp_generate_image do?
generates an image with AI and saves it as a WordPress attachment. It uses the provider configured in Multimedia.
Does wp_generate_image modify the media library?
Yes. It can create, update, or delete media assets depending on the arguments.
Which capability is commonly required?
It usually runs under controls compatible with upload_files and the active MCP profile.
How should wp_generate_image be used safely?
Confirm target assets, review uploads before publication, and keep rollback-friendly workflows where possible.
What dependency should be confirmed first?
Multimedia provider configured
