How to refresh or reload updated view.json changes in an Ignition project without restarting the Gateway?

Hi Community,

I am currently developing an AI chatbot within an Ignition project. The chatbot is able to read project view information from a view.json file stored on the local C drive and provide responses based on that data.

As a next step, I have enabled the chatbot to modify the view.json file directly based on user prompts. For example, if a user says, “Add a label component to sample_view,” the chatbot updates the corresponding JSON and saves the changes to the file on disk.

However, these changes are not reflected in the live project immediately. They only appear after I restart the Gateway. Once the Gateway is restarted, I can see the updates made through the chatbot prompt.

I would like to know whether Ignition provides any scripting function or supported approach to refresh or reload project resources whenever a disk file is updated, so that the changes are reflected in the live project without requiring a Gateway restart.

I would also appreciate any suggestions for an alternative or better-supported approach to achieve this kind of dynamic view update.

Thank you in advance for your guidance.

Have you try the documentation?

https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-project/system-project-requestScan