HOW TO
In ArcGIS Pro it is possible to list tools containing specific parameter names. This is ideal for situations when creating programmatically automated tasks using ArcPy, as knowing the exact parameter names is crucial. It is also important during workflow testing as a complete list of parameter names ensures all possible inputs are considered and tested.
for tool in arcpy.ListTools("*"):
params = arcpy.GetParameterInfo(tool)
for param in params:
if param.name == "<parameterName1>" or param.name == "<parameterName2>":
print(tool, param.name)
The code block below demonstrates the full working script.
for tool in arcpy.ListTools("*"):
params = arcpy.GetParameterInfo(tool)
for param in params:
if param.name == "output_location" or param.name == "output_name":
print(tool, param.name)
The image below shows all the geoprocessing tools containing the specific parameter names in ArcGIS Pro.
Get help from ArcGIS experts
Download the Esri Support App