read_snippet
Retrieve a line-bounded, sanitized snippet from an allowed file while enforcing path controls and redacting PII before it reaches an LLM.
Instructions
Retrieves a line-bounded, sanitized snippet from an allowed 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": {
"relativePath": "<relativePath>"
},
"name": "read_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lineCount | No | Number of lines to read (capped at max_snippet_lines) | |
| startLine | No | Start line number (1-indexed) | |
| relativePath | Yes | Relative file path |