arcgis_run_gp
Runs any ArcGIS geoprocessing tool (analysis, management, conversion, raster) in the active ArcGIS Pro project. Output layers are automatically added to the current map.
Instructions
在活工程上运行任意 ArcGIS 地理处理工具(整个 ArcToolbox:分析/管理/转换/栅格…)。输出图层会自动加到当前地图(用户能看到)。tool 用点号写法如 'analysis.Buffer'、'management.Clip';params 是按工具签名顺序排列的位置参数字符串数组。例:tool='analysis.Buffer',params=['roads','roads_buf','100 Meters']。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | 工具名,点号写法,如 analysis.Buffer / management.Dissolve / sa.Slope。 | |
| params | Yes | 按工具参数顺序的位置参数(字符串)。输入/输出强烈建议用数据集全路径(如 C:\...\x.gdb\fc),图层名在后台 GP 里解析不可靠。距离等参数如 '500 Meters'。 | |
| allow_delete | No | Safety opt-in. Destructive tools (Delete*/Truncate*) are BLOCKED by default to protect shapefiles, feature classes and geodatabases. Set true ONLY when you intend to delete or truncate data. |