common-invoke-workflow-by-id
Execute workflow actions on Sitecore content items by ID to manage content approval processes. Specify workflow commands and comments to control item progression.
Instructions
Executes workflow action for a Sitecore item by its ID.
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": {
"id": "<id>",
"commandName": "<commandName>"
},
"name": "common-invoke-workflow-by-id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the item to have the workflow action executed. | |
| commandName | Yes | The name of the workflow command. | |
| comments | No | The comment to be saved in the history table for the action. | |
| language | No | The language that will be used as source language. | |
| database | No | The database containing the item (defaults to the context database). |