Set Post Visibility
set_post_visibilityHides or shows one post of a widget, or pins it so the widget shows it first. visibility: hidden (the widget leaves the post out), shown (the widget shows it, also when the widget's words or post type rule would hide it, and approves it when new posts wait for approval), or default (no choice: the widget's rules decide). pinned true: the post shows first (at most 12 pinned posts). Get the post id from list_widget_posts first. Paid plans, Pro widgets.
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": {
"widget_id": "<widget_id>",
"post_id": "<post_id>",
"visibility": "<visibility>"
},
"name": "set_post_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pinned | No | True: the post shows first on the widget. Not sent: false. | |
| post_id | Yes | The post's id (the id in list_widget_posts). | |
| widget_id | Yes | The widget's id (the id in list_widgets). | |
| visibility | Yes | shown, hidden, or default (the widget's rules decide). |