Update AM Script
updateScriptUpdate a Scripted Decision Node script by modifying its name, description, or JavaScript source code in a specified realm.
Instructions
Update an existing Scripted Decision Node script. You can update any combination of name, description, or script content.
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": {
"realm": "<realm>",
"scriptId": "<scriptId>"
},
"name": "updateScript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name for the script | |
| realm | Yes | The realm containing the script | |
| script | No | New JavaScript source code for the script | |
| scriptId | Yes | The unique identifier of the script (UUID format) | |
| description | No | New description for the script |