Upload Docs
Attach reference documents to the session, reusing the /agent intake
validation (PDF/image direct; office/HTML/EPUB staged to PDF at upload
when LibreOffice is available — otherwise the run-time pipeline converts;
spreadsheets stored NATIVELY on the sheet path — doc_kind=‘sheet’,
page_count counts sheets). This route ADDITIONALLY accepts .md/.txt
text files (D1 doc roles): stored as role-LOCKED context docs
(doc_kind=‘text’) with an upload-time excerpt — never launched, their
content feeds the design agent’s context. Stored through the
uploaded-files machinery (the shared intake.stage_agent_doc path —
the processor page’s new-run upload uses the same helper WITHOUT the
text widening); the doc_key is the file-{id} reference launch_run
resolves.
Authorizations
Path Parameters
Body
Reference documents: PDF/image/office/HTML/EPUB (processing docs), spreadsheets (sheet path), and .md/.txt text files (context-only).
Response
Successful Response