I apologize, I don't really know how to ask my question well....I created a custom GP tool that allows user to trace a route over an existing transportation route, then the end lines split the existing route, a buffer is created to then select the features that are within the route chosen and copy the features.
Basically, I want the user to choose any section of a route (routes are typically random lines segments) and it will copy that section. The tool run successfully in ArcGIS when things were hardcoded. used arcpy.GetParameterAsText(#) for spots that had hard code but I don't necessarily want my user to be naming things that are intermediate steps. I attached my code and here is how i set up my parameters.

When I publish my GP tool on my ArcServer and I add my custom tool to an analysis widget, I have the necessary data within the web map to run the tool. i get this error.

Overall, I only want my input to be a route that the user selects and everything else to be coded so it shows up with the name I choose so that it is clear for the next steps. I am not sure how to get a feature class to show up as an output without marking it as a parameter within the arcGIS tool. Any tips on how to set my parameters so that it will run within my web tool?