arnoudkooi/sn-scriptsync

Use sn-scriptsync in combination with SN Utils to be able to code in VS Code, including all benefits of a full fledged code editor

53Stars on the repository
61Mods indexed here, across every type
todayLast push, which is what freshness is scored on
noneNo LICENSE: all rights reserved, so bodies are not copied

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…

not rated 53 changed today 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.

not rated 53 today 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.

not rated 53 today 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.

not rated 53 today 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/.

not rated 53 today 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.

not rated 53 today 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.

not rated 53 today 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.

not rated 53 today 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.

not rated 53 today 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.

not rated 53 today 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.

not rated 53 today 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).

not rated 53 today 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) …

not rated 53 changed today 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…

not rated 53 today 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…

not rated 53 today 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.

not rated 53 today 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.

not rated 53 today 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.

not rated 53 today 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.

not rated 53 today 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.

not rated 53 today A 0 tokens

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: