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

55Stars on the repository
68Mods indexed here, across every type
todayLast push, which is what freshness is scored on
customA LICENSE file GitHub cannot name, so bodies are not copied

activate_tab

01

arnoudkooi/sn-scriptsync

Command Claude Code

Find and activate a browser tab by URL pattern. Useful for navigating to specific ServiceNow pages or ensuring a tab is ready before taking screenshots.

not rated 55 today A 0 tokens

add_column

02

arnoudkooi/sn-scriptsync

Command Claude Code

Add a column to a table by creating a sysdictionary entry (keyed by table.element). Use this instead of createartifact for dictionary entries — it avoids the map.json name collision where every column would share name = .

not rated 55 today A 0 tokens

capture_full_page

03

arnoudkooi/sn-scriptsync

Command Claude Code

Capture a full-page (entire scrollable page, beyond the viewport) or single-element screenshot through the Chrome debugger and save it under screenshots/. Unlike takescreenshot (viewport only, no debugger), this uses CDP to render the whole page or a specific element.

not rated 55 today A 0 tokens

check_connection

04

arnoudkooi/sn-scriptsync

Command Claude Code

Verify WebSocket server is running and browser helper tab is connected. Always call this before any other operations.

not rated 55 today A 0 tokens

check_name_exists

05

arnoudkooi/sn-scriptsync

Command Claude Code

Check if an artifact name already exists (checks local map.json files only, not ServiceNow).

not rated 55 today A 0 tokens

arnoudkooi/sn-scriptsync

Command Claude Code

Remove the native-dialog handler installed by setdialoghandler and return the dialogs intercepted while it was active. Detaches the Chrome debugger unless a network/console capture is still running on the tab.

not rated 55 today A 0 tokens

click_element

09

arnoudkooi/sn-scriptsync

Command Claude Code

Click a DOM element by CSS selector in the ServiceNow content document of the connected tab. Best-effort and light-DOM only — it does not pierce shadow DOM (Polaris/Next Experience web components). For form fields and UI actions prefer setfield / runuiaction; reach for clickelement only when there is no gform path…

not rated 55 changed 25d ago A 0 tokens

code_search

10

arnoudkooi/sn-scriptsync

Command Claude Code

Run the SN Utils GraphQL field-index code search across ServiceNow script tables and return structured matches. This is the same engine as the SN Utils code search page — far better than a plain queryrecords LIKE at finding where a term actually lives in scripts (script includes, business rules, UI actions, client…

not rated 55 today A 0 tokens

create_application

11

arnoudkooi/sn-scriptsync

Command Claude Code

Create a scoped application (sysapp). The scope is set at insert time — it is read-only afterwards, so this is the correct way to establish a new scope. The resolved scope name → sysid is recorded in scopes.json so later createartifact / addcolumn calls can target it.

not rated 55 today A 0 tokens

create_artifact

12

arnoudkooi/sn-scriptsync

Command Claude Code

Create a new artifact directly via payload. This is the preferred method for AI agents - no file creation needed, executes immediately (not queued).

not rated 55 today B 0 tokens

create_record

13

arnoudkooi/sn-scriptsync

Command Claude Code

Insert a plain data row on any table: an incident, task, sysuser, sysusergroup, cmdbci, catalog request — anything whose display field is not name.

not rated 55 today A 0 tokens

create_table

14

arnoudkooi/sn-scriptsync

Command Claude Code

Create a custom table by inserting a sysdbobject record. ServiceNow auto-creates the physical table and its base sys fields (sysid, syscreatedon, sysupdatedon, etc.). Pair it with addcolumn for your own fields, and set the display column via addcolumn display: true. This mirrors the createapplication / addcolumn…

not rated 55 today A 0 tokens

debugger_detach

15

arnoudkooi/sn-scriptsync

Command Claude Code

Force-detach the Chrome debugger from the connected tab. Removes the yellow "SN Utils started debugging this browser" banner and ends any network/console capture or dialog handler still active. A safety net — stop / clear already detach when nothing else is running.

not rated 55 today A 0 tokens

delete_application

16

arnoudkooi/sn-scriptsync

Command Claude Code

Delete a scoped application: its scoped metadata (records whose sysscope is the app) and the sysapp record itself, via a guarded background script. Irreversible. Requires confirm: true and both sn-scriptsync.deleteRecords.enabled and sn-scriptsync.backgroundScripts.enabled.

not rated 55 today A 0 tokens

delete_record

17

arnoudkooi/sn-scriptsync

Command Claude Code

Delete a record by table + sysid, or bulk-delete by query. Disabled by default. Enable sn-scriptsync.deleteRecords.enabled in VS Code settings to allow it.

not rated 55 today A 0 tokens

get_capabilities

18

arnoudkooi/sn-scriptsync

Command Claude Code

Ask the connected SN Utils helper tab what it can do right now — the Agent API version, the license tier, whether the Chrome DevTools Protocol browser debugger (network/console capture, full-page screenshots, native dialog handling) is usable, which protocol capabilities the helper supports (two-phase command review…

not rated 55 today A 0 tokens

get_form_state

20

arnoudkooi/sn-scriptsync

Command Claude Code

Read the live form in the connected browser tab: its table, sysid, new-record flag, and current field values (including unsaved edits). Reads from gform, so it reflects what the user/agent actually sees — not the saved database row. Pair it with setfield to verify writes and with /tn (runslashcommand) when you need…

not rated 55 today A 0 tokens

get_last_error

22

arnoudkooi/sn-scriptsync

Command Claude Code

Get the last error that occurred. Errors are automatically written to lasterror.json in the folder of the instance that reported them, and that instance's pending Agent requests are failed when ServiceNow returns an error. Other instance folders in the workspace are untouched.

not rated 55 changed 1mo ago A 0 tokens

get_parent_options

23

arnoudkooi/sn-scriptsync

Command Claude Code

Get available parent records for reference fields. Use this to find existing REST API services, tables, etc.

not rated 55 today A 0 tokens

get_record

24

arnoudkooi/sn-scriptsync

Command Claude Code

Fetch a single record by table + sysid. Cheaper and simpler than queryrecords when you already know the sysid (e.g. to confirm a write).

not rated 55 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: