arnoudkooi/sn-scriptsync
Command
Guarded commands (background scripts, deletes, some UI actions) whose per-instance gate is set to Approve don't execute immediately: the command returns EREVIEWPENDING right away with a reviewId, and the actual request waits in the SN Utils helper tab Review Queue for the developer to approve or reject (5-minute…
arnoudkooi/sn-scriptsync
Command
Resolve the URL an artifact is actually served at — without opening a tab. UI pages render at / .do, Service Portal pages at /sp?id=..., widgets in the preview harness — not at their record form. Handy before navigateandscreenshot or for sharing a link.
arnoudkooi/sn-scriptsync
Command
Get current sync queue status.
arnoudkooi/sn-scriptsync
Command
Fetch table field definitions from ServiceNow API.
arnoudkooi/sn-scriptsync
Command
List artifacts in a specific table.
arnoudkooi/sn-scriptsync
Command
List every instance in the workspace with its URL and per-instance activity freshness, plus a suggested default. Purely local — it reads the /settings.json files directly, so it needs no browser helper tab and never returns EINSTANCEREQUIRED. Use it as the first step when you don't yet know which instance to target.
arnoudkooi/sn-scriptsync
Command
List available table folders in the instance.
arnoudkooi/sn-scriptsync
Command
Navigate a connected ServiceNow tab to a URL (opening a tab if none is found) and resolve once the page finishes loading. Use this to put a specific record/list in front of the live-form commands (setfield, getformstate, runuiaction). For a screenshot in the same step, prefer navigateandscreenshot.
arnoudkooi/sn-scriptsync
Command
Open/activate a URL, wait for it to finish loading, settle briefly, then screenshot that exact tab — collapsing the activate → sleep → screenshot dance into one call. The PNG is saved under screenshots/.
arnoudkooi/sn-scriptsync
Command
Open an artifact in the browser. For widgets, opens the preview page; for other artifacts, opens the form view.
arnoudkooi/sn-scriptsync
Command
Pull records from ServiceNow and store their code fields into canonical local workspace files ( / / / . . or / / . for folder-record tables) with automatic map.json registration.
arnoudkooi/sn-scriptsync
Command
Execute an arbitrary encoded query against any ServiceNow table. Use this to fetch data, check conditions, or explore records.
arnoudkooi/sn-scriptsync
Command
Refresh browser tabs showing the artifact preview. Useful after updating a widget to see changes immediately.
arnoudkooi/sn-scriptsync
Command
Make an arbitrary ServiceNow REST call through the connected browser session (reuses its authentication). The escape hatch for anything the typed commands don't cover.
arnoudkooi/sn-scriptsync
Command
Execute a server-side background script (/sys.scripts.do) on the instance and return its captured output. Runs as the connected browser user, in the global scope. Disabled by default — enable sn-scriptsync.backgroundScripts.enabled.
arnoudkooi/sn-scriptsync
Command
Execute SN Utils slash commands on a ServiceNow tab. Particularly useful for debugging forms with /tn (show technical names).
arnoudkooi/sn-scriptsync
Command
Trigger a UI action on the active ServiceNow form in the connected browser tab. Runs the real client-side path (gform.save() / gform.submit()), so onSubmit client scripts and UI policies execute. A page reload usually follows, so the command resolves as soon as the action is dispatched (not when the reload finishes) …
arnoudkooi/sn-scriptsync
Command
Install a native-dialog handler on the connected tab through the Chrome debugger (CDP). While active, browser-native confirm() / alert() / prompt() and the dirty-form beforeunload ("Leave site?") prompt are answered automatically and recorded (message text included). Pair with cleardialoghandler to remove it and read…
arnoudkooi/sn-scriptsync
Command
Set a field value on the active ServiceNow form in the connected browser tab via gform.setValue. Because this drives the live form, it fires client scripts, onChange handlers, and UI policies — unlike a REST updaterecord, which bypasses all client-side logic. Use it to reproduce/verify client behaviour, not for bulk…
arnoudkooi/sn-scriptsync
Command
Start capturing console. output, log entries, and uncaught exceptions on the connected ServiceNow tab through the Chrome debugger (CDP). Pair with stopconsolecapture.
arnoudkooi/sn-scriptsync
Command
Start recording network traffic on the connected ServiceNow tab through the Chrome debugger (CDP). Captures request method/URL/headers and, by default, response bodies — things content scripts can't see. Pair every call with stopnetworkcapture, which returns the log and detaches the debugger.
arnoudkooi/sn-scriptsync
Command
Stop the capture started by startconsolecapture and return the collected entries. Detaches the Chrome debugger unless another capture/handler is still active on the tab.
arnoudkooi/sn-scriptsync
Command
Stop the capture started by startnetworkcapture and return the recorded requests. Detaches the Chrome debugger (dropping the banner) unless a console capture or dialog handler is still active on the tab.
arnoudkooi/sn-scriptsync
Command
Switch ServiceNow context: update set, application scope, or domain. This uses the ServiceNow UI Concourse Picker API to change the active context in the browser session.