execute_groovy
Run Groovy scripts in the Hybris scripting console to automate SAP Commerce Cloud tasks, with an option to commit database changes.
Instructions
Execute a Groovy script in the Hybris scripting console
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": {
"script": "<script>"
},
"name": "execute_groovy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit | No | Whether to commit database changes (default: false) | |
| script | Yes | Groovy script to execute |