ensure_lines_in_file
Add or remove specified lines from a remote file via SSH to enforce desired content state.
Instructions
Ensures specific lines are present or absent in a file
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": {
"sessionId": "<sessionId>",
"path": "<path>",
"lines": "<lines>",
"state": "<state>"
},
"name": "ensure_lines_in_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | SSH session ID | |
| path | Yes | File path | |
| lines | Yes | Lines to manage | |
| state | Yes | Desired state |