Layer Replace Data Source
arcgis_pro_layer_replace_data_sourceReplace an ArcGIS Pro layer's data source by pointing it to a specified workspace and dataset, with optional validation to confirm the new source works.
Instructions
ArcGIS Pro:layer图层。返回可验证的结构化结果;写入和路径限制以服务能力为准。
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>",
"workspace_path": "<workspace_path>",
"dataset_name": "<dataset_name>",
"dataset_type": "<dataset_type>"
},
"name": "arcgis_pro_layer_replace_data_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_name | Yes | ||
| validate | No | ||
| aprx_path | Yes | ||
| layer_name | Yes | ||
| dataset_name | Yes | ||
| dataset_type | Yes | ||
| workspace_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||