ck_fs_read
Read a file's contents from the project root without modifying anything. Provide a relative path to view the whole file, or pass start_line and max_lines to read a specific line range.
Instructions
Read a file from the bound project root. Read-only — no files are modified or created. path is required and must be relative to the project root (e.g., lib/my_module.ex). start_line (1-indexed) and max_lines enable windowed reads for large files. Omit both to read the entire file. Use ck_fs_read to inspect a file at a known path. Use ck_fs_find to locate a file by name fragment. Use ck_fs_grep to search inside files by content pattern. Use ck_fs_ls to list directory contents.
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": "ck_fs_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File or directory path relative to the project root. | |
| max_lines | No | ||
| session_id | No | Unique session identifier for correlating findings, proofs, budget, and audit trail. | |
| start_line | No | 1-indexed starting line number for partial file reads. | |
| project_root | No | Absolute path to the project root directory on the local filesystem. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| content | No | ||
| start_line | No | ||
| total_lines | No |