copy_mxd_with_layer_visibility
Creates a copy of the MXD in the scratch workspace and sets visibility for specified layers, requiring confirmation to proceed.
Instructions
Create an MXD copy in scratch and change visibility only for named layers. Requires confirm=true.
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": {
"mxd_path": "<mxd_path>",
"output_mxd": "<output_mxd>",
"layer_names": "<layer_names>",
"visible": "<visible>"
},
"name": "copy_mxd_with_layer_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| visible | Yes | ||
| mxd_path | Yes | ||
| overwrite | No | ||
| output_mxd | Yes | ||
| layer_names | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||