Virtual Roots
Asta provides special virtual paths:asta:knowledge— Access to README.md, CHANGELOG.md, and docs/*.mduser:memories— Access to user-specific memories (User.md)
List Files
Endpoint
Query Parameters
Path to list files from. Use
asta:knowledge for Asta docs, user:memories for user memories, or any allowed directory path.Response
The root directory being listed
Available root paths when no directory is specified
Read File
Endpoint
Query Parameters
Path to the file to read. Can be a virtual path (
asta:knowledge/..., user:memories/User.md) or a real path within allowed directories.Response
The requested file path
File contents as UTF-8 text
Access Control
If the requested path is not in the allowlist, returns403 with:
/api/files/allow-path to add the path.
Write File
Endpoint
Query Parameters
Path to write to. Can be workspace-relative (e.g.,
workspace/notes.txt) or absolute. Must be within allowed paths.Request Body
Content to write to the file (UTF-8)
Response
Absolute path where the file was written
Success indicator
Special Cases
- Writing to
user:memories/User.mdsaves user memories - Workspace-relative paths are normalized (e.g.,
~/workspace/file→workspace/file) - Parent directories are created automatically
Manage Allowed Paths
Get Allowed Paths
Grant Path Access
Path to add to the allowlist (file or directory). If a file, its parent directory is also added.