Lux Experience
SN Utils in the ServiceNow Lux experience: slash commands inside the Lux shell, the Lux Inspector (/lux), and Lux widgets in Code Search.
Last updated: November 23, 2026
Lux is the experience ServiceNow introduced with the Brazil release. Its navigation, home page and a growing number of applications are built from Lit web components and served under /aiux/. Classic forms and lists still exist: they open inside the Lux shell.
SN Utils works in both parts.
Slash Commands in the Lux Shell
Open the slash command popup anywhere in the Lux shell, as you do in the classic UI.
- The current record, table and list filter are found when a classic form or list is open in the shell. Commands that act on them, such as
/listor/bgc, work as they do in the classic UI. - Classic pages open inside the shell. Type a table name or a command that opens a classic page and it loads in place. From a Lux page such as Home, it opens inside the shell in the same tab.
- Cmd/Ctrl+Enter still opens the result in a new tab.
/poptakes a classic page out of the Lux shell, and puts it back.
Lux Inspector (/lux)
Type /lux on any page under /aiux/ to see what the page is made of. The Lux Inspector opens on the right:
| Section | What it shows |
|---|---|
| Experience | Name, address and application scope, with a link to the experience record |
| Page | The route and element name of the current page, with a link to the page record, and the layout it sits in. A badge tells whether the page is composed (containers and widget instances) or source-built (a page file in a Lux project) |
| Widgets on this page | The widgets placed on the page itself, including nested ones, with links to the widget record and, on composed pages, to the widget instance |
| Layout and shared widgets | Widgets outside the page, such as those in the header and navigation |
| Other components | The other elements the page is built with, such as cards, tabs and buttons, with how often each occurs. Folded until you open it |
| Pages in this experience | Every route of the experience. Routes without parameters are links |
Find What You See
- Pick: click the target button in the header, then click anything on the page. The inspector opens the widget it belongs to, or the component when it is not part of a widget.
- Locate: every widget has a Locate action that scrolls to it and outlines it. A widget that is placed more than once lists each occurrence, with its own Locate and its own widget instance.
- Filter: type in the box at the top to narrow widgets, components and pages.
Escclears it. - Copy: hover a technical name to copy it.
The inspector follows you when you move to another page of the experience, and the refresh button reads the page again after it changed. Drag the header to move the panel out of the way, drag its left edge to resize it, and double-click the header to put it back. Its place is remembered.
Inspect One Element
Pick an element, or click the name of a widget or component in the list, to see how it is set up:
| Section | What it shows |
|---|---|
| Where it sits | The elements around it, up to the page and its layout. Click one to inspect it |
| Attributes | The attributes set on the element |
| Instance configuration | For a widget placed on a composed page: the name, order, classes and properties on its widget instance record |
| Inputs and state | What the element was given and holds right now: its inputs, its internal state, and the data its server script and loader returned |
Copy context copies where the element is and the links to its records as Markdown, ready for a ticket, a colleague or a coding agent. It leaves the element's values out; Copy context with values adds them when you want them.
When two occurrences of the same widget behave differently, inspect each: the difference is usually in the instance configuration or in the inputs.
Record Links
A link says Open record only when the record is known. When the page does not name its record, the inspector looks it up first: No record means there is none, and Find record opens a list when several records match or the lookup was not allowed.
Many source-built pages place no widgets at all: the page renders everything itself, from its own code and framework components. The inspector then says that no widget record matches and lists those components under Other components.
A widget marked built comes from a Lux project. Change it in the project and deploy again: a change made on the record is overwritten by the next deploy.
View Widget Source
Click Source on a widget to read its code without leaving the page:
- For a built widget, the instance only runs minified code. SN Utils shows the original source files the developer wrote, read from the widget's source map.
- For a widget written on the record, it shows the component as stored.
- The server script is shown below the component. Each part has a Copy button.
Good to Know
- The widget list needs read access to the widget records. Without it, the experience, page and routes are still shown, and widgets you cannot read appear under Other components.
- The code of a source-built page is not available: the instance does not expose page components the way it exposes widgets.
- On a page that is not Lux,
/luxtells you so and opens nothing.
Find Experiences and Widgets
| Command | Action |
|---|---|
/luxe searchterm | Search Lux experiences by title or URL. Picking one opens the experience |
/luxw searchterm | Search Lux widgets by name or element name. Picking one opens the widget record |
Lux in Code Search
Code Search includes Lux widgets (component code, server script and original source), page CSS and app shell CSS, so a search for a function or a class name also finds it in your Lux apps.