delete_line
Delete a line and every endpoint under it, immediately or by staging the removal in the line's draft with commitMode "draft" and draftRevision (returns {draft}, discardable via discard_line_draft, instead of deleting right away). An immediate delete removes the line's own revision history along with it, so list_config_revisions has nothing left to list and rollback_config cannot bring the line back. Errors when lineKey is missing, doesn't match a line in the project, or the draft revision is stale. 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>"
},
"name": "delete_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lineKey | Yes | The line key, e.g. "v1". | |
| commitMode | No | Defaults to publish. Draft writes require draftRevision. | |
| draftRevision | No | Current line draft revision, required for draft writes. |