Create AM Script
createScriptCreate a new Scripted Decision Node script to add custom JavaScript logic to authentication journeys, specifying the realm and script code.
Instructions
Create a new Scripted Decision Node script for use in authentication journeys. Use getScriptedDecisionNodeBindings to see available variables and allowed imports before writing the script.
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>",
"name": "<name>",
"script": "<script>"
},
"name": "createScript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the script | |
| realm | Yes | The realm to create the script in | |
| script | Yes | The JavaScript source code for the script | |
| description | No | Optional description of the script |