read_file
Read a file's contents from an issue-specific workspace using a safe relative path, blocking traversal, absolute paths, and .git access.
Instructions
Read a file's contents from the workspace start_issue created for this
issue. relative_path is resolved relative to that workspace and is
refused if it is absolute, has a drive letter, is a UNC path, escapes
the workspace via '..', or touches '.git'. Returns the file contents as
a plain string on success, "REFUSED: ..." if the path is blocked, or
"ERROR: ..." for other failures (e.g. no active workspace, file not
found) -- never raises.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_number | Yes | The issue number whose active workspace to read from; must have been started with start_issue first. | |
| relative_path | Yes | Path to the file, relative to the issue workspace root. Absolute paths, drive letters, UNC paths, '..'-escaping paths, and any path touching '.git' are refused. |