List artifacts
GET /api/workspace/tree returns every file, flattened to one list:
truncated flag marks a
clipped result.
Read one artifact
GET /api/workspace/file/{file} returns one artifact with its metadata.
Encode each path segment: /api/workspace/file/recon%2FINDEX.md.
Text artifacts carry their decoded content. Binary artifacts return
metadata only, and the bytes come from the raw endpoint. Reads past 512 KiB
come back clipped, with truncated: true.
Download an artifact
GET /api/workspace/raw/{file} streams the raw bytes with the derived
content type. Use it for downloads and image previews. Scriptable documents
(HTML, SVG, XML) download as attachments, so a stored artifact never
executes in the dashboard origin.
Delete artifacts
DELETE /api/workspace/artifacts deletes artifacts:
- Send
{ "paths": ["recon/INDEX.md"] }to delete exactly those files, up to 500. - Send an empty body to clear the whole workspace.

