← Tool reference

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.

FieldRequiredMeaning and constraints
sessionIdstringYes

Pattern validation applies; see the raw schema.

workspaceIdstringYes

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.

FieldRequiredMeaning and constraints
documentobjectYes

Extra fields are not allowed.

document: nested contract
FieldRequiredMeaning and constraints
contentTypestringYes

Allowed: "application/msword", "application/pdf", "application/rtf", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "image/jpeg", "image/png", "text/markdown", "text/plain", "text/rtf".

documentIdstringYes

Pattern validation applies; see the raw schema.

extractionStatusstringYes

Must be "queued".

filenamestringYes

Minimum characters: 1.

Maximum characters: 200.

labelstringYes

Minimum characters: 1.

Maximum characters: 500.

purposestring | nullYes

Must match at least one alternative.

purpose: nested contract
Alternative 1: string

Allowed: "offer_support", "repair_evidence", "repair_seller_response".

Alternative 2: null

sizeBytesintegerYes

Maximum: 20971520.

Greater than: 0.

sourcestringYes

Must be "buyer_upload".

schemaVersionstringYes

Must be "1".

sessionIdstringYes

Pattern validation applies; see the raw schema.

statusstringYes

Must be "finalized".

workspaceIdstringYes

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.