Overview
Each personal CREAO agent has a durable file space — the skill folder mounted into sandbox runs (for exampleSKILL.md plus supporting references, scripts, and templates). CREAO CLI can upload a file to an exact path, list those files, fetch a short-lived download URL, and delete a file.
Together with Update an agent, this lets you write an agent’s whole skill folder on your machine and push it as is: skill_content sets SKILL.md, and each supporting file is uploaded to the path SKILL.md refers to. No agent run rewrites the files on the way in.
Get an agent with its files
Get an agent returns the same file list infiles, each with a download_url, so one request covers the whole agent. Add include=file_content to also get the text of small UTF-8 files, such as scripts and Markdown, in content:
content is filled for text and code files up to 256 KB each, in list order, until the inlined text reaches 2 MB. Binary files, larger files, and files past that budget return content: null; download them from download_url. Without include=file_content, every content is null.
Upload a file
Send the file asmultipart/form-data in the file field, and the relative path inside the agent in path:
- Folders are kept. A run sees the file at the same relative path in the agent’s folder, so a
SKILL.mdthat says “readreferences/style-guide.md” finds it. - Uploading to a path that already holds a file replaces it and returns
200. A new file returns201. pathdefaults to the uploaded file name.curl -F "file=@references/style-guide.md"sends onlystyle-guide.mdas the name, so passpathfor any file in a folder.- Characters outside the safe file-name set, such as spaces, become
_. The responsenameis the stored path...segments are refused. SKILL.mdandconfig.yamlat the root are part of the agent definition. Set them withskill_contentandconfig_contenton Update an agent; uploading them returnsAGENT_FILE_PATH_RESERVED. ASKILL.mdinside a folder, such asskills/research/SKILL.md, is an ordinary file.- Each file can be up to 20 MB, and an agent holds at most 50 files, including
SKILL.md.
Push a local agent folder
This script makes the agent match a local folder: it setsSKILL.md from the folder, uploads every other file to its relative path, and deletes files that are no longer in the folder.
.DS_Store, and it assumes local names are already safe (no spaces, quotes, parentheses, or &): a stored name that differs from the local one looks deleted and is removed. Every call counts toward the per-minute request limit, so pace a folder of more than about 25 files; see Rate limits.
List files
SKILL.md when present.
Download a file
download_url is a presigned URL that expires in 1 hour.
Delete a file
SKILL.md is allowed. CREAO re-stages it automatically the next time the agent’s skill content is updated.
Errors
See also the OpenAPI operations under Agent Files.