execute_arcpy_code
Execute ArcPy geoprocessing code in ArcGIS Pro's native Python environment and retrieve output, errors, and exceptions.
Instructions
在 ArcGIS Pro Python 环境中执行 ArcPy 代码并返回 stdout、stderr 与异常信息。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "execute_arcpy_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| workspace | No | ||
| project_path | No | ||
| open_current_project | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||