gestionar_post
Manage a WordPress post's lifecycle: publish it, revert it to draft, or delete it permanently, and get confirmation with the updated URL.
Instructions
Gestiona el ciclo de vida de una publicación en WordPress (publicar, volver a borrador o eliminar).
Args: post_id: ID del post en WordPress. accion: 'publicar' (status='publish'), 'borrador' (status='draft'), o 'eliminar' (borrado definitivo).
Returns: Confirmación de la acción realizada con la URL actualizada del 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": {
"post_id": "<post_id>",
"accion": "<accion>"
},
"name": "gestionar_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accion | Yes | ||
| post_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |