finalize_transaction_document_upload
Finish document upload
Finish an upload started with create_transaction_document_upload once the bytes have been posted to its target. Ohvii verifies the stored file against the session's size and SHA-256, records the document on the transaction, and queues text extraction; the document then appears in list_transaction_documents. Refused if the bytes were never uploaded, do not match, or the session expired.
- Effect
- Draft or workspace edit
- Required scopes
documents:write- Workflow stages
- closing, offer, transaction
- Data classes
- documents, transaction
- Operation cost
- 8 weighted units; additional domain limits may apply.
- Configurations
- Standard, Buyer UI v2
- Muse proposal
- Write. Creates or updates draft, document, or workspace data within the authorized workflow. Meta makes the final classification during review.
Buyer approval and signing controls apply in addition to the scopes above. Read error and retry guidance before implementing recovery.
Input and output contracts
Returns structured content and a JSON text content block. Live discovery may compact a large output schema; execution validates the full contract below.
Input fields
Required applies within the containing object. Optional fields can be omitted; null is accepted only where listed. Field descriptions and constraints come from the source schema. The raw schema remains the complete contract.
| Field | Required | Meaning and constraints |
|---|---|---|
sessionIdstring | Yes | Pattern validation applies; see the raw schema. |
workspaceIdstring | Yes | Pattern validation applies; see the raw schema. |
Output fields
Required applies within the containing object. Optional fields can be omitted; null is accepted only where listed. Field descriptions and constraints come from the source schema. The raw schema remains the complete contract.
| Field | Required | Meaning and constraints | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
documentobject | Yes | Extra fields are not allowed. | ||||||||||||||||||||||||||||||
document: nested contract
| ||||||||||||||||||||||||||||||||
schemaVersionstring | Yes | Must be "1". | ||||||||||||||||||||||||||||||
sessionIdstring | Yes | Pattern validation applies; see the raw schema. | ||||||||||||||||||||||||||||||
statusstring | Yes | Must be "finalized". | ||||||||||||||||||||||||||||||
workspaceIdstring | Yes | Pattern validation applies; see the raw schema. | ||||||||||||||||||||||||||||||
Raw input schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"sessionId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,200}$"
},
"workspaceId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,200}$"
}
},
"required": [
"sessionId",
"workspaceId"
],
"additionalProperties": false
}Full output schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"document": {
"type": "object",
"properties": {
"contentType": {
"type": "string",
"enum": [
"application/msword",
"application/pdf",
"application/rtf",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"image/jpeg",
"image/png",
"text/markdown",
"text/plain",
"text/rtf"
]
},
"documentId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,200}$"
},
"extractionStatus": {
"type": "string",
"const": "queued"
},
"filename": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"purpose": {
"anyOf": [
{
"type": "string",
"enum": [
"offer_support",
"repair_evidence",
"repair_seller_response"
]
},
{
"type": "null"
}
]
},
"sizeBytes": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 20971520
},
"source": {
"type": "string",
"const": "buyer_upload"
}
},
"required": [
"contentType",
"documentId",
"extractionStatus",
"filename",
"label",
"purpose",
"sizeBytes",
"source"
],
"additionalProperties": false
},
"schemaVersion": {
"type": "string",
"const": "1"
},
"sessionId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,200}$"
},
"status": {
"type": "string",
"const": "finalized"
},
"workspaceId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,200}$"
}
},
"required": [
"document",
"schemaVersion",
"sessionId",
"status",
"workspaceId"
],
"additionalProperties": false
}Tool annotations
{
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": false
}Reference 00e5441a095c7e20. Download the full catalog.