Unified api for amftool and stltool