servicenow
Installation
SKILL.md
Jace's ServiceNow CLI
Explore and manage ServiceNow instances. Works standalone or with AI agents.
Discovery
Commands are self-documenting. Use these to learn what's available:
jsn commands --md # Full catalog with descriptions, actions, and hints
jsn <command> --help # Detailed usage, flags, and examples for any command
Agent Rules
- Output modes —
--jsonwhen parsing data;--mdwhen presenting to humans;--agentfor automation - Use sys_id for updates — All update/delete operations require sys_id
- Check auth first — Run
jsn auth statusbefore operations - NEVER logout — Only run
jsn auth logoutif the user explicitly asks - Use
--profile <name>to target a specific instance, orjsn config switch <name>to change default
Command Hierarchy
Pick the most specific tool for the job:
- Specific commands —
rules,flows,jobs, etc. — curated views with domain-aware formatting records --table <name>— generic CRUD on any table (the workhorse)rest— raw escape hatch for any REST endpoint- Ask the human — if none of the above work. Never generate scripts as a fallback.
JSON Envelope
All commands support --json. The envelope structure:
{
"ok": true,
"data": [ ... ],
"summary": "5 records",
"breadcrumbs": [
{"action": "show", "cmd": "jsn records --table incident <sys_id>", "description": "View details"}
]
}
Breadcrumbs suggest next commands — follow them for navigation.
Configuration
~/.config/servicenow/
├── config.json # Profiles and settings
└── credentials.json # Auth tokens (fallback)
.servicenow/ # Per-repo config (optional)
└── config.json # Project-specific settings
Environment variables:
SERVICENOW_TOKEN— Override stored tokenSERVICENOW_INSTANCE— Override instance URL