common-invoke-workflow
Execute a workflow action on a Sitecore item using its ID or path and the required workflow command name.
Instructions
Executes workflow action for a Sitecore item.
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": {
"commandName": "<commandName>"
},
"name": "common-invoke-workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The ID of the item to have the workflow action executed. Supply this or path. | |
| path | No | The path of the item to have the workflow action executed. Supply this or id. | |
| comments | No | The comment to be saved in the history table for the action. | |
| database | No | Database to resolve an id against (default master). | |
| language | No | The language that will be used as source language. | |
| commandName | Yes | The name of the workflow command. |