execute_background_script
Run server-side JavaScript in the background on ServiceNow instances to automate workflows, manipulate records, and extend platform functionality.
Instructions
Execute a background script on the instance (server-side JavaScript). [Scripting]
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_background_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Application scope (default global) | |
| script | Yes | JavaScript code to execute |