Back to home
Connect a client

Prepare an import upload

Create a direct-upload target for a database import file. Complete the upload before starting the import.

Arguments

NameTypeRequiredLimits
filenamestringYesAt least 1 character(s)
sizeBytesintegerYesMinimum 1
contentTypestringNoSee schema
projectIdstringYesAt least 1 character(s)
databaseIdstringYesAt least 1 character(s)
Full input schema
{
  "type": "object",
  "properties": {
    "filename": {
      "type": "string",
      "minLength": 1
    },
    "sizeBytes": {
      "type": "integer",
      "minimum": 1
    },
    "contentType": {
      "type": "string"
    },
    "projectId": {
      "type": "string",
      "minLength": 1
    },
    "databaseId": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "projectId",
    "databaseId",
    "filename",
    "sizeBytes"
  ],
  "additionalProperties": false
}

Example call

The params of a tools/call request. Replace the placeholder values with your own IDs.

{
  "name": "createDatabaseImportUpload",
  "arguments": {
    "projectId": "REPLACE_WITH_PROJECT_ID",
    "databaseId": "REPLACE_WITH_DATABASE_ID",
    "filename": "source.zip",
    "sizeBytes": 1048576
  }
}

Result

The same data as the API operation, wrapped as {"untrusted_data": true, "source": "createDatabaseImportUpload", "note": "...", "data": ...} so the model treats project content as data, not instructions.