common-invoke-workflow-by-path
Execute workflow actions on Sitecore items using their file paths to manage content approval processes and state transitions.
Instructions
Executes workflow action for a Sitecore item by its path.
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": {
"path": "<path>",
"commandName": "<commandName>"
},
"name": "common-invoke-workflow-by-path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path 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). |