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.
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": {
"filepath": "<filepath>"
},
"name": "read_config_snippet"
}
}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 | |||