Preview a workspace file or MPK archive member
GET/api/workspace/file
Returns node metadata together with a bounded text preview when the selected content is text-like. The previewAvailable and truncated flags tell clients whether content was returned and whether only a prefix is shown. Binary files remain discoverable but are not serialized into the JSON response.
Request
Responses
- 200
- 400
- 403
- 404
- 500
Node metadata and a bounded text preview when the content is text-like.
Missing or invalid request data.
The requested path escapes the allowed root.
The requested resource was not found.
A local operation failed.