Preview a page

  • Release version: Australia
  • Updated August 4, 2026
  • 1 minute to read
  • Test that your page appears and functions as intended.

    About this task

    Certain pages aren't previewable in the ServiceNow® AI Experience Lab for VS Code extension and must be previewed by deploying to your instance. To learn about deploying, see Deploy changes.

    Before you begin

    Role required: none

    The ServiceNow® AI Experience Lab for VS Code extension requires the following:
    Application Version Resources for more information
    Visual Studio Code 1.97 later Visual Studio Code updates
    Node.js 24 or later Node.js
    pnpm 10 or later pnpm
    ServiceNow SDK 4.10 or later ServiceNow SDK
    ServiceNow instance
    • Australia Patch 5 or later
    • Zurich Patch 12 or later
    Prepare your upgrade

    Procedure

    1. Open a ServiceNow® AI Experience Lab for VS Code project in Visual Studio Code.
    2. In the Explorer panel, navigate to the /pages folder.
    3. Select the expand icon for the page that you want to preview.
    4. Right click or select and hold the page.js file that you want to preview and select AIUX: Launch Preview.
      A preview of your page appears. You can preview how your page appears on different devices, expand the preview panel, and interact with page elements.

    What to do next

    If your page isn't already accessible from other pages, add the page to the navigation. Otherwise, you can deploy your changes.