execute_background_script
Run server-side JavaScript directly on ServiceNow instances to automate custom logic, perform bulk updates, or debug issues without modifying production workflows.
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 |