wp_set_featured_image
Assign a media attachment as the featured image for a WordPress post or page. Provide the media ID and target post to update the featured image.
Instructions
Assign a media attachment as the featured image of a post or page.
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": {
"ref": "<ref>",
"media_id": "<media_id>"
},
"name": "wp_set_featured_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| dry_run | No | Preview changes without writing | |
| media_id | Yes | ||
| post_type | No | post |