SmartShell API and how to use it