Devbox
Devbox-FileTools

Read text file contents from Devbox filesystem.

Read file contents from a file on a Devbox as a UTF-8. Note 'downloadFile' should be used for large files (greater than 100MB). Returns the file contents as a UTF-8 string.

post/v1/devboxes/{id}/read_file_contents

Request

  • Base URL: https://api.runloop.ai
  • URL: https://api.runloop.ai/v1/devboxes/{id}/read_file_contents
  • Auth: HTTP bearer

Path parameters

idstring required

The Devbox ID.

Request body

file_pathstring required

The path on the Devbox filesystem to read the file from. Path is relative to user home directory.

Response

OK

Changes

No recorded changes to this operation across all 50 revisions of this API.