arnoudkooi

60 mods across 1 repository, 53 stars between them.

activate_tab

01

arnoudkooi/sn-scriptsync

Command

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.

53 2d ago A 0 tokens

add_column

02

arnoudkooi/sn-scriptsync

Command

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

53 2d ago A 0 tokens

capture_full_page

03

arnoudkooi/sn-scriptsync

Command

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.

53 2d ago A 0 tokens

check_connection

04

arnoudkooi/sn-scriptsync

Command

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

53 2d ago A 0 tokens

arnoudkooi/sn-scriptsync

Command

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.

53 2d ago A 0 tokens

click_element

09

arnoudkooi/sn-scriptsync

Command

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…

53 2d ago A 0 tokens

code_search

10

arnoudkooi/sn-scriptsync

Command

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…

53 2d ago A 0 tokens

create_application

11

arnoudkooi/sn-scriptsync

Command

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.

53 2d ago A 0 tokens

create_artifact

12

arnoudkooi/sn-scriptsync

Command

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

53 2d ago B 0 tokens

create_record

13

arnoudkooi/sn-scriptsync

Command

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

53 2d ago A 0 tokens

create_table

14

arnoudkooi/sn-scriptsync

Command

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…

53 2d ago A 0 tokens

debugger_detach

15

arnoudkooi/sn-scriptsync

Command

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.

53 2d ago A 0 tokens

delete_application

16

arnoudkooi/sn-scriptsync

Command

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.

53 2d ago A 0 tokens

delete_record

17

arnoudkooi/sn-scriptsync

Command

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.

53 2d ago A 0 tokens

get_capabilities

18

arnoudkooi/sn-scriptsync

Command

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…

53 2d ago A 0 tokens

get_form_state

20

arnoudkooi/sn-scriptsync

Command

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…

53 2d ago A 0 tokens

get_last_error

22

arnoudkooi/sn-scriptsync

Command

Get the last error that occurred. Errors are automatically written to lasterror.json and pending Agent requests are failed when ServiceNow returns an error.

53 2d ago A 0 tokens

get_record

24

arnoudkooi/sn-scriptsync

Command

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

53 2d ago A 0 tokens