List Catalog Item Variables
list_catalog_item_variablesRetrieve all variables and form fields for a ServiceNow catalog item, including names, types, mandatory flags, defaults, and help text, to know what data to provide when submitting a request.
Instructions
List the variables (form fields) for a specific catalog item. Returns variable names, types, whether they are mandatory, default values, and help text. Includes variables from associated variable sets by default.
Essential for understanding what data to provide when using submit_catalog_request. Variable types include: Single Line Text, Multi Line Text, Select Box, Reference, CheckBox, Date, Yes/No, and more.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | The ServiceNow instance auth alias to use. This is the alias configured via `now-sdk auth --add` (e.g., "myinstance", "prod", "test"). The user will typically refer to this by name when saying things like "on my myinstance instance". If not provided, falls back to the SN_AUTH_ALIAS environment variable. | |
| catalog_item_sys_id | Yes | The sys_id of the catalog item to list variables for. | |
| include_variable_sets | No | Whether to include variables from associated variable sets (default true). Set to false to only get directly-assigned variables. |