duplicate_line
Copy a line and all its endpoints/targets/rules into a new line key — build v2 from v1. The copy is saved inactive and remains off the data plane; edit it, then activate_line when ready. Requires edit access.
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": {
"lineKey": "<lineKey>",
"newLineKey": "<newLineKey>"
},
"name": "duplicate_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional name for the copy (defaults to "<source name> (copy)"). | |
| lineKey | Yes | The source line key to copy. | |
| commitMode | No | Defaults to publish. Draft writes require draftRevision. | |
| newLineKey | Yes | New line key for the copy, e.g. "v2". | |
| draftRevision | No | Current line draft revision, required for draft writes. |