import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const response = await client.devboxes.readFileContents('id', { file_path: 'file_path' });
console.log(response);"<string>"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.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const response = await client.devboxes.readFileContents('id', { file_path: 'file_path' });
console.log(response);"<string>"Documentation Index
Fetch the complete documentation index at: https://docs.runloop.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The Devbox ID.
The path on the Devbox filesystem to read the file from. Path is relative to user home directory.
OK
The response is of type string.
Was this page helpful?