Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>NowAIKit BuilderNew to Visual Studio Code? Get it now.
NowAIKit Builder

NowAIKit Builder

AartiQ

|
116 installs
| (0) | Free
The complete ServiceNow development experience in VS Code — script explorer, field autocomplete, update set manager, instance health dashboard, and more.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
NowAIKit Builder

VS Code ServiceNow License: Source Available

No more browser-based script editing. No more manual script sync. No more complex setup.

Connect to your instance → open the code → use all VS Code features → save. That's it.

NowAIKit Builder brings the full power of VS Code to ServiceNow development — real IntelliSense, real diff, real Git, real AI agents. Everything ServiceNow developers have been waiting for.

Part of the NowAIKit product family.


Features

Script Explorer

Script Explorer

Browse, edit, and manage all ServiceNow scripts without leaving VS Code.

  • 10 script types — Business Rules, Script Includes, Client Scripts, UI Policies, UI Actions, Service Portal Widgets, UI Pages, Processors, Scheduled Jobs, Scripted REST APIs
  • Push/Pull/Compare — one-click push to instance, pull latest, or diff side-by-side
  • Create new business rules, script includes, and client scripts from VS Code
  • Auto-push on save — edit files in .nowaikit/ and changes push automatically
  • Search across all script types by name
  • Sort by name, last updated, or date created
  • Scope-aware — scripts grouped by application scope

Table Explorer

Navigate your instance data model without leaving VS Code.

  • Organized categories — Core, CMDB, User & Group, Knowledge, Catalog, System
  • Full schema view — fields, types, references, mandatory flags, default values
  • Add custom tables — include any table not in the defaults
  • Search and filter — find tables by name instantly
  • Scoped app tables — automatically discovers tables from your current scope

Update Set Manager

Update Set Manager

Full update set lifecycle management from the sidebar.

  • Switch update sets — writes the user preference and invalidates active browser sessions so the next page load picks up the change automatically
  • Application scope switching — filter update sets by scope, switch scope with one click
  • Create new update sets with name and description
  • Current set highlighting — always know which update set is active
  • Search and sort — filter by name, sort by updated date, name, or created date

Instance Dashboard

Instance Dashboard

Real-time instance health monitoring in a webview panel.

  • Platform info — ServiceNow version, build tag
  • Scheduler health — active jobs, error counts with trend indicators
  • Log monitoring — 24-hour error counts with trend arrows
  • Update set overview — top 10 in-progress update sets
  • Auto-refresh — configurable interval (default 60s, 0 to disable)
  • Trend indicators — see what changed since the last refresh

AI Agents for GitHub Copilot Chat

Copilot Agents

Specialized ServiceNow AI agents built into GitHub Copilot Chat — each with deep platform knowledge and focused expertise.

Agent Role Commands
@nowaikit General assistant /explain, /best-practices, /glidequery, /scoped-app
@nowaikit-scan Instance scanner /health, /security, /debt, /upgrade, /cmdb, /performance
@nowaikit-review Code reviewer /script, /acl, /flow, /integration, /security
@nowaikit-build Code generator /business-rule, /client-script, /script-include, /flow, /widget, /rest-api, /catalog, /ui-action, /fix-script
@nowaikit-debug Debugger /error, /logs, /slow-query, /data, /integration, /acl
@nowaikit-test Test generator /atf, /test-plan, /regression, /data-setup
@nowaikit-security Security specialist /acl-audit, /roles, /data-policy, /hardening, /compliance
@nowaikit-architect Solution architect /design, /data-model, /integration, /scale, /migrate
@nowaikit-docs Documentation /api, /release-notes, /runbook, /architecture, /script-doc, /user-guide
@nowaikit-performance Performance tuning Query optimization, caching, bottleneck analysis

NowAIKit MCP server in agent mode

When you connect to an instance, Builder registers the NowAIKit MCP server for it. Agent mode then gets the NowAIKit ServiceNow tools (ATF, update sets, CMDB, Fluent, Instance Scan and more) with no mcp.json to edit.

  • It runs npx -y nowaikit, so Node.js has to be installed.
  • It reuses the connection you already made. Your password or OAuth token is read from VS Code's secret storage when the server starts and passed only to that process.
  • It's read-only unless you turn on nowaikit-builder.mcp.allowWrite. Scripting, CMDB writes, ATF runs and Now Assist each have their own setting (mcp.allowScripting, mcp.allowCmdbWrite, mcp.allowAtf, mcp.allowNowAssist), all off by default. An instance Builder keeps read-only gets a read-only server whatever these say.
  • Turn it off with nowaikit-builder.mcp.enabled. In Cursor it's registered through Cursor's own MCP API.
  • OAuth tokens are refreshed before they expire, and the server restarts with the new token on its own.

Copilot Chat Skills

Deep ServiceNow knowledge bases that power accurate AI responses:

  • GlideRecord — queries, inserts, updates, encoded queries, scoped patterns
  • GlideQuery — modern fluent API, Optional handling, aggregates
  • Business Rules — when/order, field changes, recursion guards, async patterns
  • Client Scripts — onChange, onLoad, onSubmit, g_form, GlideAjax
  • REST API — RESTMessageV2, Table API, Scripted REST, authentication
  • Security — ACLs, roles, data policies, OWASP patterns
  • Flow Designer — flows, subflows, actions, triggers, error handling
  • Service Portal — widgets, Angular, server scripts, dependencies

Code Snippets

Production-ready code snippets covering every common ServiceNow pattern:

Category Count Examples
GlideRecord & Queries 13 gr, grget, grenc, ga, sgr, cmdbci
GlideQuery (Modern) 4 gq, gqget, gqagg, gqinsert
Business Rules 3 brbefore, brafter, brasync
Client Scripts 4 csonchange, csonload, csonsubmit, cscelledit
g_form API 6 gfset, gfget, gfmand, gfvis, gfro, gfmsg
GlideSystem 5 gsinfo, gserror, gsinclude, gsrole, gsuser
Script Includes 3 si, ajax, ajaxsi
REST & Integration 5 rest, restfull, tableget, tablepost
Flow Designer 3 flowaction, flowtransform, flowsub
UI Actions & Advanced 17 uiaction, uiaclient, notif, atf, schedjob

Real-Time Script Sync

Two-way synchronization with NowAIKit Utils Chrome extension.

  • WebSocket bridge — real-time bi-directional sync between VS Code and the browser
  • Edit anywhere — change a script in the browser or VS Code, it syncs both ways
  • Organized file structure — .nowaikit/{instance}/{scope}/{table}/{name}.js
  • Metadata tracking — companion .meta.json files for each script
  • Configurable port: default 8765
  • Auto-start option: start sync automatically on connection

Connecting the browser extension

The sync server only listens on 127.0.0.1, so nothing else on your network can reach it. Every connection also has to present a sync token, and Builder makes a new one each time VS Code starts.

  1. Run NowAIKit: Start Script Sync, then pick Copy token (or run NowAIKit: Copy Script Sync Token later).
  2. Paste the token into the NowAIKit Utils options page, next to the bridge port.
  3. Utils connects to ws://127.0.0.1:<port>/?token=<token>.

Other local tools can connect the same way, or send the token in an Authorization: Bearer <token> header. Connections from ordinary web pages are refused even with the token. If you really need a page origin to connect (a local dev server, say), add it to nowaikit-builder.syncAllowedOrigins.

If you think the token has leaked, run NowAIKit: Regenerate Script Sync Token. Every connected browser is dropped and has to reconnect with the new token.

When Utils asks Builder to run a background script, VS Code shows the script and waits for you to approve it.

Multi-Instance Support

Multi-Instance

Connect to any number of ServiceNow instances and switch with one click.

  • Save instance configs — URL, username, auth method stored per instance
  • Quick switch — change instances from Command Palette or status bar
  • Independent credentials — each instance has its own secure credential storage
  • Status bar indicator — always see which instance and scope you're connected to

Authentication

Method Best for
Browser sign-in SSO, MFA and any identity provider. OAuth with PKCE, no client secret
Basic Auth Personal developer instances, quick setup
OAuth 2.0 with client secret Older confidential OAuth apps
  • Browser sign-in opens the instance's sign-in page and catches the redirect on http://localhost:8765/callback (or 8766, 8767 when 8765 is busy). It needs a public OAuth app with PKCE and those redirect URLs, such as the one nowaikit setup creates. Builder finds that app's client ID in your NowAIKit CLI config, or you can enter one. It works in Cursor and Windsurf too.
  • Before opening the browser, Builder checks the request with the instance, so a wrong redirect URL or unknown client ID gets a clear message.
  • Tokens refresh before they expire, and a 401 triggers one refresh and retry.
  • One sign-in covers Builder's REST calls and the NowAIKit MCP server. Fluent projects get a prompt to sign the ServiceNow SDK in too.
  • All credentials are stored in VS Code SecretStorage (OS keychain).

Glide completion and hover

  • Completion for GlideRecord, GlideAggregate, gs, GlideElement, GlideDateTime, g_form, g_user, GlideAjax and more.
  • Table names inside new GlideRecord('...'), and field names inside addQuery('...'), getValue('...'), setValue('...'), orderBy('...') and similar calls, read live from sys_db_object and sys_dictionary. Inherited fields and dot-walks (caller_id.department) work.
  • Hover a field to see its label, type and reference table.
  • The table list is cached per instance for a week. NowAIKit: Refresh Table and Field Cache reloads it.

Safe pushes

  • Builder records the instance's sys_updated_on and a content hash when you pull a script. Before saving back, it checks the instance again.
  • If someone changed the script since your pull, you see their version beside yours and choose Overwrite, Merge or Cancel. Merge does a three-way merge into your file and marks any overlapping lines as conflicts.
  • Builder warns when the record is already in another open update set.

Write gates and audit log

  • Each instance is read-only, ask or allow. An instance whose name has no dev, test, uat, demo or similar marker is treated as production and stays read-only until you allow writes (NowAIKit: Set Write Access for This Instance).
  • Chat agents can update and create records through Builder's tools. On "ask" instances you confirm each change.
  • Every write is read back to confirm the instance kept it, and logged to the NowAIKit Audit output channel and .nowaikit/audit.ndjson. Field values are never logged.

Instance Scan, references and linting

  • Opening a synced script shows its Instance Scan findings in the Problems panel. NowAIKit: Run Instance Scan on This Script runs a point scan, and NowAIKit: Load Instance Scan Findings loads a whole scope. Quick fixes open the finding, the check's documentation or the fix steps.
  • Script includes and functions show "N references on the instance", found by searching the script fields of business rules, script includes, UI actions and other code tables. Click to list and open them.
  • A ServiceNow linter flags GlideRecord in client scripts, gs.sleep, current.update() in before business rules, hard-coded sys_ids, eval, getRowCount, and GlideRecord queries inside while (gr.next()) loops.

Update set guardrails

A status bar item shows the current update set next to the application scope. It turns yellow when the update set is Default or can't be read. Click it to pick another in-progress update set or create one.

Before Builder pushes a script (by command or on save), it checks the update set. If it's Default, you get a warning with the choice to pick a working update set or push anyway. Builder only asks once per Default update set, and you can turn the check off with nowaikit-builder.warnOnDefaultUpdateSet.

Fluent (ServiceNow SDK) projects

Open a folder with a now.config.json and these commands work on it. Builder uses the project's own now-sdk when it's installed, and npx @servicenow/sdk otherwise.

Command What it does
NowAIKit: Build Fluent App now-sdk build
NowAIKit: Fluent: Validate App A strict build (--frozenKeys --errorOnConflict). If the keys file is stale it builds once first
NowAIKit: Fluent: Deploy App to Instance Builds, then runs now-sdk install against the instance Builder is connected to
NowAIKit: Fluent: Add SDK Login Saves an SDK login for the connected instance from your Builder connection
NowAIKit: Fluent: Download App Metadata now-sdk download from the connected instance into a project folder

Deploy and download always target the instance Builder is connected to. If the SDK has no login for it, Builder offers to add one rather than fall back to the SDK's default login. For Basic auth the password goes to the SDK through stdin, never on the command line. OAuth logins open a terminal so the SDK can run its own browser sign-in.

ATF in the Test Explorer

Your instance's active ATF suites show up in VS Code's Testing view, with each suite's tests underneath. Run a suite and Builder starts it through the CI/CD API, follows its progress and marks each test passed or failed. Failures show the ATF output and a link to the result record.

  • Your user needs the sn_cicd role, and the CI/CD plugin (com.snc.cicd) must be active.
  • ServiceNow can't run a single test over REST. If you run one test, Builder runs its whole suite and reports the test you picked.
  • Running more than three suites at once asks you to confirm first.

Application Scope Management

  • View current scope in the status bar
  • Switch scope — changes the apps.current_app user preference
  • Scope-filtered update sets — see only update sets for the current scope
  • Scoped app table discovery — Table Explorer shows tables from the current scope

Script console and log tail

  • NowAIKit: Open Script Console runs server scripts in a chosen scope and keeps a history. gs.print, gs.info, gs.warn and gs.error output and the return value come back to the panel.
  • Scripts run as a one-time scheduled job that reports back and removes itself, because current releases no longer answer REST clients on the Scripts - Background page. A run usually takes 10 to 40 seconds to be picked up. It needs admin rights.
  • NowAIKit: Follow System Log tails syslog for your own activity, a source, errors only or any query.

Update set promotion

Deploy Update Set to Instance loads the update set on the target, runs the platform preview and shows any problems beside the editor. It only commits when the preview is clean and you confirm. Read-only targets are refused.


Getting Started

Install

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
  3. Search for "NowAIKit Builder"
  4. Click Install

Or install from the command line:

code --install-extension aartiq.nowaikit-builder

Connect to Your Instance

  1. Click the NowAIKit icon in the Activity Bar (left sidebar)
  2. Click "Connect to Instance" in the welcome view
  3. Enter your instance URL (e.g., https://dev12345.service-now.com)
  4. Choose an authentication method (browser sign-in is the one to use with SSO or MFA)
  5. Enter credentials
  6. You're connected! Scripts, tables, and update sets load automatically.

Tip: Your credentials are stored securely in your OS keychain via VS Code SecretStorage. They are never stored in plain text.

Use AI Agents

  1. Open GitHub Copilot Chat (Ctrl+Shift+I / Cmd+Shift+I)
  2. Type @nowaikit to use the general assistant
  3. Or use a specialized agent: @nowaikit-build /business-rule incident
  4. The agent has full ServiceNow knowledge from 8 built-in skills

All Commands

All commands are available via the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):

Instance

Command Description
NowAIKit: Connect to Instance Connect with Basic Auth or OAuth
NowAIKit: Disconnect Instance Disconnect from current instance
NowAIKit: Switch Instance Switch between saved instances
NowAIKit: Switch Application Scope Change the current application scope
NowAIKit: Open in Browser Open instance or record in browser
NowAIKit: Instance Dashboard Open the health dashboard

Scripts

Command Description
NowAIKit: Refresh Scripts Reload all scripts from instance
NowAIKit: Search Scripts Search scripts by name
NowAIKit: Sort Scripts Sort by name, updated, or created
NowAIKit: Open Script Open a script in the editor
NowAIKit: Push Script to Instance Push current file to instance
NowAIKit: Pull Script from Instance Pull latest from instance
NowAIKit: Compare with Instance Diff local vs instance version
NowAIKit: Create Business Rule Create a new business rule
NowAIKit: Create Script Include Create a new script include
NowAIKit: Create Client Script Create a new client script
NowAIKit: Run Background Script Execute script on instance

Tables

Command Description
NowAIKit: Refresh Tables Reload table explorer
NowAIKit: Search Tables Filter tables by name
NowAIKit: Sort Tables Sort table list
NowAIKit: View Table Schema View full table schema
NowAIKit: Add Custom Table Add a table to the explorer
NowAIKit: Clear Table Filter Remove table name filter

Update Sets

Command Description
NowAIKit: Switch Update Set Switch active update set
NowAIKit: Set as Current Update Set Set selected update set as current
NowAIKit: Create Update Set Create a new update set
NowAIKit: Search Update Sets Filter update sets by name
NowAIKit: Sort Update Sets Sort by name, updated, or created
NowAIKit: Refresh Update Sets Reload update set list
NowAIKit: Show All Update Sets Clear scope filter

Sync

Command Description
NowAIKit: Start Script Sync Start WebSocket sync with NowAIKit Utils
NowAIKit: Stop Script Sync Stop the sync service
NowAIKit: Copy Script Sync Token Copy the token the browser extension needs
NowAIKit: Regenerate Script Sync Token Make a new token and drop connected clients

Configuration

Setting Default Description
nowaikit-builder.instances [] Saved instance configurations
nowaikit-builder.defaultUpdateSet "" Default update set name
nowaikit-builder.autoPull false Auto-pull scripts on connect
nowaikit-builder.scriptTypes [6 types] Script tables to show in explorer
nowaikit-builder.maxRecords 100 Maximum records per query
nowaikit-builder.dashboardRefreshInterval 60 Dashboard auto-refresh in seconds (0 to disable)
nowaikit-builder.syncPort 8765 WebSocket port for script sync
nowaikit-builder.syncAutoStart false Auto-start sync on connection
nowaikit-builder.warnOnDefaultUpdateSet true Warn before pushing into the Default update set
nowaikit-builder.mcp.enabled true Register the NowAIKit MCP server for the connected instance
nowaikit-builder.mcp.allowWrite false Let the MCP server write to the instance
nowaikit-builder.mcp.allowScripting false Let it change scripts, ACLs and changesets (needs allowWrite)
nowaikit-builder.mcp.allowCmdbWrite false Let it create and update CIs (needs allowWrite)
nowaikit-builder.mcp.allowAtf false Let it run ATF tests
nowaikit-builder.mcp.allowNowAssist false Let it use Now Assist tools
nowaikit-builder.intellisense.enabled true Glide completion and hover with live tables and fields
nowaikit-builder.conflictCheck true Check the instance before pushing a synced script
nowaikit-builder.writeGate.default auto Write access for instances not listed in writeGates
nowaikit-builder.writeGates {} Write access per instance: read-only, ask or allow
nowaikit-builder.verifyWrites true Read records back after writing them
nowaikit-builder.auditLog.enabled true Log writes to .nowaikit/audit.ndjson
nowaikit-builder.instanceScan.loadOnOpen true Show Instance Scan findings when a synced script opens
nowaikit-builder.whereUsed.enabled true Reference counts above script includes and functions
nowaikit-builder.lint.enabled true ServiceNow lint rules for classic scripts
nowaikit-builder.lint.rules {} Turn lint rules off or change their severity
nowaikit-builder.backgroundScript.method scheduledJob How scripts run on the instance
nowaikit-builder.logTail.intervalSeconds 5 How often the log tail polls syslog
nowaikit-builder.updateSetPromotion.method preview Preview before commit, or the old copy
nowaikit-builder.mcp.packageVersion "" Pin the nowaikit version the MCP server runs
nowaikit-builder.syncAllowedOrigins [] Extra page origins allowed to use script sync (browser extensions are always allowed)

Requirements

  • VS Code 1.103 or later
  • GitHub Copilot extension (for AI agents — optional but recommended)
  • ServiceNow instance (any release) with REST API access
  • User account with appropriate roles (admin or itil recommended)

Security

NowAIKit Builder is secure by default — no telemetry, no third-party data sharing.

  • Credential storage — all passwords, OAuth tokens, and client secrets stored in VS Code SecretStorage (OS keychain), never in plain text
  • OAuth 2.0 — Authorization Code flow with CSRF state validation
  • HTTPS only — all ServiceNow communication over TLS
  • Input sanitization — query parameters escaped against ServiceNow injection metacharacters
  • XSS prevention — all dashboard content HTML-escaped before rendering
  • sys_id validation — 32-character hex format enforced before API calls
  • No telemetry — zero data collection, zero analytics, zero tracking
  • No third-party services — communicates only with your ServiceNow instance
  • Explicit confirmation: background scripts need your approval, whether you start them from the command palette or the browser extension asks for one
  • Local-only sync: script sync binds to 127.0.0.1, needs a per-session token and refuses web page origins

Integration with NowAIKit Ecosystem

NowAIKit Builder works standalone, but becomes even more powerful with the NowAIKit ecosystem:

Product Integration
NowAIKit 450+ MCP tools that connect Claude, ChatGPT, Gemini and Cursor to ServiceNow
NowAIKit 26 built-in AI capabilities — scanning, code review, architecture, test planning
NowAIKit Utils Chrome extension — real-time script sync via WebSocket bridge
NowAIKit Builder VS Code extension (you are here)

License

Source Available — free to use. See LICENSE for details.


Built for ServiceNow



NowAIKit

nowaikit.com

Built by Hardik Benani · AartiQ

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft