Moderation Transition Delete
moderation_transition_deleteRemove a moderation transition from a Drupal workflow, save the workflow, and report remaining transitions. Warns when deleting the last transition leaves content unable to move.
Instructions
Delete a moderation transition from a workflow.
The counterpart of moderation_transition_create: a transition is
configuration inside its workflow, so this removes it through
WorkflowTypeInterface::deleteTransition() and saves the workflow,
exactly as Drupal's own delete form does. The reply reports how many
transitions the workflow has left, and warns when that was the last
one -- a workflow with no transitions cannot move content at all.
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": {
"workflow_id": "<workflow_id>",
"transition_id": "<transition_id>"
},
"name": "moderation_transition_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | ||
| transition_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||