The Liquit.Agent.SelectFile function lets you utilize the Agent to select a local file. The Agent needs to be running to use this function.
You can check if the Agent is running by using the following variable:
Liquit.Workspace.Agent.Enabled
Usage and example
By default, the Agent will return the path where the selected file is available.
Liquit.Agent.SelectFile(
function (result) {
//result.path will be the path to the selected file
console.log(result);
});