Read the contents of a file from an agent’s workspace.
utf-8 or base64)download=true, the response is a raw binary stream with the appropriate Content-Type header.
| Field | Type | Description |
|---|---|---|
path | string | Absolute path of the file in the workspace |
content | string | File content in the requested encoding |
encoding | string | Encoding used for the content (utf-8 or base64) |
size | number | File size in bytes |
mime_type | string | Detected MIME type of the file |
| Code | Description |
|---|---|
200 | File content returned successfully |
401 | Invalid authentication |
403 | Access denied |
404 | Agent or file not found |