WooCommerce: Set featured image
woocommerce_set_featured_imageAssign an existing media library item as the featured image for a WordPress or WooCommerce post by specifying the site, post ID, and media ID.
Instructions
[UNIFIED] Set a WordPress post's featured image to an existing media library item.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"post_id": "<post_id>",
"media_id": "<media_id>"
},
"name": "woocommerce_set_featured_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| post_id | Yes | ||
| media_id | Yes |