repair_layer_source
Repoint a layer's broken data source to a new workspace or dataset path to restore map or table access in ArcGIS Pro.
Instructions
Repoint a layer at a new workspace or dataset to fix a broken source.
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": {
"layer_name": "<layer_name>",
"new_source": "<new_source>"
},
"name": "repair_layer_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_name | No | Map to act on; defaults to the active map. | |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. | |
| new_source | Yes | New workspace (folder/.gdb) or full dataset path. | |
| dataset_name | No | Dataset name inside the new workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |