Ensure Lines In File
ensure_lines_in_fileEnsure specified lines exist in a remote file, or remove them if needed. Optionally create the file if missing.
Instructions
Ensures specific lines are present or absent in a file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | SSH session ID | |
| path | Yes | File path | |
| lines | Yes | Lines to manage | |
| state | No | Desired state | |
| createIfMissing | No | Create file if it does not exist |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||