set-featured-image
Assign a media item as the featured image for a WordPress post using the post ID and media ID.
Instructions
Assign a featured image to a WordPress post
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": {
"postId": "<postId>",
"mediaId": "<mediaId>"
},
"name": "set-featured-image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postId | Yes | ID of the post to update | |
| mediaId | Yes | ID of the media item to set as featured image |