Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

servicenow-agent

БесплатноЗапускает вложенные скриптыНе проверен

Read-only CLI access to ServiceNow Table, Attachment, Aggregate, and Service Catalog APIs; includes schema inspection and history retrieval (read-only).

sundial-orgот sundial-org★ 676 звёзд на GitHub

Об этом скилле

ServiceNow Table API Read Only

Use this skill to read data from ServiceNow via the Table API. Do not create or update or delete records.

Configuration

Set these environment variables in the .env file in this folder.

  • SERVICENOW_DOMAIN instance domain such as myinstance.service-now.com
  • SERVICENOW_USERNAME username for basic auth
  • SERVICENOW_PASSWORD password for basic auth

If your domain already includes https:// then use it as is. Otherwise requests should be made to:

https://$SERVICENOW_DOMAIN

Allowed Operations GET only

Use only the GET endpoints from these files.

  • openapi.yaml for Table API
  • references/attachment.yaml for Attachment API
  • references/aggregate-api.yaml for Aggregate API
  • references/service-catalog-api.yaml for Service Catalog API

List records

  • GET /api/now/table/{tableName}

Get a record by sys_id

  • GET /api/now/table/{tableName}/{sys_id}

Never use POST or PUT or PATCH or DELETE.

Common Query Params Table API

  • sysparm_query encoded query such as active=true^priority=1
  • sysparm_fields comma separated fields to return
  • sysparm_limit limit record count to keep small for safety
  • sysparm_display_value true or false or all
  • sysparm_exclude_reference_link true to reduce clutter

See openapi.yaml for the full list of parameters.

CLI

Use the bundled CLI for all reads. It pulls auth from .env by default. You can override with flags.

Command overview

  • list table lists records from a table
  • get table sys_id fetches one record by sys_id
  • batch file.json runs multiple read requests in one call
  • attach reads attachments and file content
  • stats table aggregates stats
  • schema table lists valid field names and types
  • history table sys_id reads full comment and work note timeline
  • sc endpoint Service Catalog GET endpoints

Auth flags

  • --domain domain instance domain
  • --username user
  • --password pass

Query flags

Use any of these as --sysparm_* flags.

  • --sysparm_query
  • --sysparm_fields
  • --sysparm_limit
  • --sysparm_display_value
  • --sysparm_exclude_reference_link
  • --sysparm_suppress_pagination_header
  • --sysparm_view
  • --sysparm_query_category
  • --sysparm_query_no_domain
  • --sysparm_no_count

Attachment API params

  • --sysparm_query
  • --sysparm_suppress_pagination_header
  • --sysparm_limit
  • --sysparm_query_category

Aggregate API params

  • --sysparm_query
  • --sysparm_avg_fields
  • --sysparm_count
  • --sysparm_min_fields
  • --sysparm_max_fields
  • --sysparm_sum_fields
  • --sysparm_group_by
  • --sysparm_order_by
  • --sysparm_having
  • --sysparm_display_value
  • --sysparm_query_category

Service Catalog params

  • --sysparm_view
  • --sysparm_limit
  • --sysparm_text
  • --sysparm_offset
  • --sysparm_category
  • --sysparm_type
  • --sysparm_catalog
  • --sysparm_top_level_only
  • --record_id
  • --template_id
  • --mode

Output

  • --pretty pretty print JSON output
  • --out path save binary attachment content to a file

Examples

List recent incidents.

node cli.mjs list incident --sysparm_limit 5 --sysparm_fields number,short_description,priority,sys_id

Query with a filter.

node cli.mjs list cmdb_ci --sysparm_query "operational_status=1^install_status=1" --sysparm_limit 10

Fetch a single record.

node cli.mjs get incident <sys_id> --sysparm_fields number,short_description,opened_at

Override auth on the fly.

node cli.mjs list incident --domain myinstance.service-now.com --username admin --password "***" --sysparm_limit 3

Attachment metadata and file download.

node cli.mjs attach list --sysparm_query "table_name=incident" --sysparm_limit 5
node cli.mjs attach file <sys_id> --out /tmp/attachment.bin

Aggregate stats.

node cli.mjs stats incident --sysparm_query "active=true^priority=1" --sysparm_count true

Service Catalog read only GETs.

node cli.mjs sc catalogs --sysparm_text "laptop" --sysparm_limit 5
node cli.mjs sc items --sysparm_text "mac" --sysparm_limit 5
node cli.mjs sc item <sys_id>
node cli.mjs sc item-variables <sys_id>

Service Catalog endpoints GET only

  • cart
  • delivery-address user_id
  • validate-categories
  • on-change-choices entity_id
  • catalogs
  • catalog sys_id
  • catalog-categories sys_id
  • category sys_id
  • items
  • item sys_id
  • item-variables sys_id
  • item-delegation item_sys_id user_sys_id
  • producer-record producer_id record_id
  • record-wizard record_id wizard_id
  • generate-stage-pool quantity
  • step-configs
  • wishlist
  • wishlist-item cart_item_id
  • wizard sys_id

Schema Inspection

Use this if you are unsure of a field name.

node cli.mjs schema incident

Reading Ticket History

Use this to read the full conversation instead of just the current state.

node cli.mjs history incident <sys_id>

Specialist presets

Create JSON batch files under specialists/ to run multiple reads at once.

  • specialists/incidents.json

Each entry supports sysparm_* fields plus these items.

  • name labe
Полный SKILL.md на GitHub

Установить servicenow-agent в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

cli.mjsreferences/aggregate-api.yamlreferences/attachment.yamlreferences/service-catalog-api.yamlreferences/table-api.yamlspecialists/attachments_incident.jsonspecialists/incident_history_template.jsonspecialists/incidents.jsonspecialists/inspect_incident_schema.json

FAQ

Что делает скилл servicenow-agent?

Read-only CLI access to ServiceNow Table, Attachment, Aggregate, and Service Catalog APIs; includes schema inspection and history retrieval (read-only).

Как установить скилл servicenow-agent?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл servicenow-agent запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить servicenow-agent с