ssh_file_get_context_around_line
Retrieve lines before and after an exact line match in a remote file via SSH, with configurable context size.
Instructions
Get lines before and after a line that matches exactly.
Returns: Dictionary with match line number and context block
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the file | |
| match_line | Yes | Exact line content to match | |
| context | No | Number of lines before and after to include | |
| use_sudo | No | Use sudo for the operation |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||