Create document
document_createReserve an upload for one document a request hands to its recipient through the form's Documents block. Returns { id, uploadUrl, expiresAt, name, contentType, size }. Bytes never pass through this tool: PUT the raw file to uploadUrl (one hour) with the declared Content-Type, then pass { "documentId": id } in request_create's documents, which verifies it. One upload serves any number of requests. See load_skill("requests").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name the recipient sees. | |
| size | Yes | Exact byte length. Max 26214400. | |
| formId | Yes | Form whose Documents block will show it; scopes the upload to that workspace. | |
| sha256 | No | Hex digest, verified against the upload when given. | |
| contentType | Yes | MIME type of the bytes you will upload. |