Repair Layer Source
arcgis_pro_repair_layer_sourceRepairs a layer's broken data source in an ArcGIS Pro project by updating it to a new workspace or dataset path, helping restore map layers after data moves.
Instructions
ArcGIS Pro:修复图层。返回可验证的结构化结果;写入和路径限制以服务能力为准。
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": {
"aprx_path": "<aprx_path>",
"map_name": "<map_name>",
"layer_name": "<layer_name>",
"new_workspace_path": "<new_workspace_path>"
},
"name": "arcgis_pro_repair_layer_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_name | Yes | ||
| aprx_path | Yes | ||
| layer_name | Yes | ||
| workspace_type | No | FILEGDB_WORKSPACE | |
| new_dataset_name | No | ||
| new_workspace_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||