Moderation Transition List
moderation_transition_listList moderation transitions for a Drupal workflow, or all workflows if no workflow ID is given, to see available content state changes.
Instructions
List a workflow's moderation transitions.
Transitions are configuration inside the workflow entity, not
entities of their own, so there is no workflow_transition resource
for JSON:API to list. They are read from the workflow's workflow-type
plugin (WorkflowTypeInterface::getTransitions()), which is where
Drupal keeps them.
Every workflow is read when workflow_id is left out. Naming a
workflow that does not exist answers an error listing the ones this
site has, rather than an empty list that reads as "no transitions".
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "moderation_transition_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_limit | No | ||
| page_offset | No | ||
| workflow_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||