run_gp_tool
Run a geoprocessing tool by name with positional or keyword arguments and return its outputs and messages. Enables automated GIS operations in ArcGIS Pro.
Instructions
Run a geoprocessing tool by name and return its outputs and messages.
tool accepts either the flat name ('Buffer_analysis') or module form
('analysis.Buffer'). Positional parameters go in args, named parameters
in kwargs. Use describe_gp_tool first if unsure of the signature.
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": {
"tool": "<tool>"
},
"name": "run_gp_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| tool | Yes | ||
| kwargs | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |