Skip to main content
POST
/
context
/
runtime
/
content
Read runtime sandbox file
curl --request POST \
  --url https://api.getcargo.io/v1/context/runtime/content \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "path": "<string>"
}
'
{
  "path": "<string>",
  "content": "<string>"
}

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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Read a file from the workspace runtime sandbox.

path
string
required

Path of the file to read in the runtime sandbox, relative to the workspace working directory.

Minimum string length: 1

Response

Successful response

path
string
required
content
string
required

UTF-8 decoded content of the file.