Read runtime sandbox file
Read a UTF-8 file from the workspace runtime sandbox. Returns the file content.
Documentation Index
Fetch the complete documentation index at: https://docs.getcargo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Path of the file to read in the runtime sandbox, relative to the workspace working directory.
11-indexed inclusive line at which to start reading. Defaults to the first line of the file.
1 <= x <= 90071992547409911-indexed inclusive line at which to stop reading. Defaults to the last line of the file. Must be greater than or equal to startLine when both are provided.
1 <= x <= 9007199254740991Response
Successful response
UTF-8 decoded content of the requested line range.
1-indexed inclusive start line of the returned slice (after clamping to the file's bounds).
-9007199254740991 <= x <= 90071992547409911-indexed inclusive end line of the returned slice. Equals startLine - 1 when the requested range starts past the end of the file.
-9007199254740991 <= x <= 9007199254740991Total number of lines in the underlying file.
-9007199254740991 <= x <= 9007199254740991
