upload_document
Add a document to a company's or pitch's data room, the same place the web app's file upload lands: a memo you wrote, a call transcript, a small file the user handed you. Give exactly one of text (plain text or markdown saved as the document itself) or content (the file's bytes, base64-encoded — small files only, since every byte spends context). For a deck or document that lives at a link, don't upload it: set deck_url with update_company, the way the web app records a linked deck. Allowed types: documents (PDF, Office, text, markdown, CSV) and images. PDFs, Office docs, and images are text-extracted afterwards so search can read them; a multi-page PDF added to a pitch also re-runs its deck analysis. Company or pitch by slug from list_companies / list_pitches / search_companies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text to save as the document, verbatim — a diligence memo, a call transcript, a summary. Use a .md or .txt filename. | |
| company | Yes | Company or pitch to file it under, by slug. | |
| content | No | The file's bytes, base64-encoded. Every byte spends context, so keep this to small files. | |
| filename | Yes | Filename with extension, e.g. diligence-memo.md or cap-table.csv. |