To extract the names of the inputs from a tool:
for _, input in ipairs(tool:GetInputList()) do print(input:GetAttrs().INPS_Name) end