arnoudkooi

60 mods across 1 repository, 53 stars between them.

get_review_result

25

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…

53 2d ago A 0 tokens

get_served_url

26

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.

53 2d ago A 0 tokens

list_instances

30

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.

53 2d ago A 0 tokens

navigate

32

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.

53 2d ago A 0 tokens

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/.

53 2d ago A 0 tokens

open_in_browser

34

arnoudkooi/sn-scriptsync

Command

Open an artifact in the browser. For widgets, opens the preview page; for other artifacts, opens the form view.

53 2d ago A 0 tokens

pull_records

35

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.

53 2d ago A 0 tokens

query_records

36

arnoudkooi/sn-scriptsync

Command

Execute an arbitrary encoded query against any ServiceNow table. Use this to fetch data, check conditions, or explore records.

53 2d ago A 0 tokens

refresh_preview

37

arnoudkooi/sn-scriptsync

Command

Refresh browser tabs showing the artifact preview. Useful after updating a widget to see changes immediately.

53 2d ago A 0 tokens

rest_request

38

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.

53 2d ago A 0 tokens

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.

53 2d ago A 0 tokens

run_slash_command

40

arnoudkooi/sn-scriptsync

Command

Execute SN Utils slash commands on a ServiceNow tab. Particularly useful for debugging forms with /tn (show technical names).

53 2d ago A 0 tokens

run_ui_action

41

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) …

53 2d ago A 0 tokens

set_dialog_handler

42

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…

53 2d ago A 0 tokens

set_field

43

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…

53 2d ago A 0 tokens

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.

53 2d ago A 0 tokens

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.

53 2d ago A 0 tokens

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.

53 2d ago A 0 tokens

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.

53 2d ago A 0 tokens

switch_context

48

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.

53 2d ago A 0 tokens