fs_read_file
Read UTF-8 text files inside a sandboxed workspace root, optionally by line range, with path-jail checks, credential blocking, and SHA-256 digest verification.
Instructions
Read a UTF-8 text file inside the sandbox workspace root with line-range filtering, canonical path jail verification, sensitive credential blocking, and SHA-256 digest.
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": {
"path": "<path>"
},
"name": "fs_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path to the file inside the workspace root. | |
| end_line | No | 1-based ending line number (inclusive). Omit to read to end of file. | |
| max_bytes | No | Optional maximum byte cap for this read operation. | |
| start_line | No | 1-based starting line number (inclusive). |