Files and folders
Markdown, JSON, YAML, and text files organized in a nested folder tree.
Files are the basic unit of context in Orcha. Each file has a type (markdown, json, yaml, or text), lives in a folder or at the workspace root, and is indexed for retrieval automatically.
Folders
Folders nest to any depth. Moving a file between folders does not change its ID, so agent references and citations stay stable. Folder IDs also drive token scoping: a folder-scoped token sees a folder and everything under it.
Trash and recovery
Deleting a file or folder is a soft delete: it moves to the Trash page, where it can be restored. Deleting a folder moves its contents with it. The REST DELETE endpoints and the MCP delete_file tool behave the same way.
Working with files from agents
- List files with
GET /api/v1/filesor thelist_filesMCP tool, optionally filtered byfolderId. - Read a file with
GET /api/v1/files/:id, orGET /api/v1/files/:id/rawfor the raw content with a proper Content-Type header. - For large files over MCP,
get_fileacceptsfromLineandmaxLinesso agents can read only the relevant range. Search results includestartLineanchors to jump from. get_filesfetches up to 20 files in one MCP call.
The full endpoint list is in the API reference; the tool list is in the MCP reference.