read_config_snippet
Read a specified slice of a config file by line range or grep pattern, with context lines and a line limit, to avoid loading entire files.
Instructions
Read a slice of a text/config file — never the whole thing blindly.
If grep_pattern is set, returns only matching blocks (+context lines); otherwise returns lines [start_line, end_line]. Hard cap max_lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | ||
| start_line | No | ||
| end_line | No | ||
| grep_pattern | No | ||
| context | No | ||
| max_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||