Workspace: File Read
Agent Workspace
Workspace: File Read
Read a file from the agent’s workspace filesystem
POST
Workspace: File Read
Read a file from the per-agent workspace filesystem. Optional line ranges let you page through large files without loading them entirely.
Path Parameters
Agent ID (UUID)
Request Body
Path to the file relative to the workspace root.
1-based line number to start reading from. Optional; reads from the beginning when omitted.
1-based line number to stop reading at (inclusive). Optional; reads to the end when omitted.
Text encoding used to decode the file contents.
Response
Result status (e.g.,
ok).File contents within the requested range.
The file path that was read.
Example Request
Notes
- Paths must be relative to the workspace root. Absolute paths are rejected.
- For binary files, set
encodingappropriately or use Workspace: File Share to retrieve the file via a public URL.
See Also
Authorizations
API Key for authentication
Path Parameters
Body
application/json
Relative path to the file to read from the workspace filesystem.
Example:
"config.yaml"
1-indexed starting line number for partial reads. Omit to read from the beginning.
Required range:
x >= 1Example:
1
1-indexed ending line number (inclusive) for partial reads. Omit to read to the end.
Required range:
x >= 1Example:
50
File encoding to use when reading. Falls back to detected encoding if decoding fails.
Example:
"utf-8"

