Import a document
begin_document_importImport an existing PDF, image, HTML file or direct HTTPS URL as a private document. Office and video are unsupported. File bytes must come from the authenticated embedded chooser or supported attachment transfer, never a local path. Replacing original requires documentId and current fileRevisionId as expectedRevisionId; preserves reader URL/access settings. A reserved job is not completed. URL fetch is explicit in complete_document_import.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"idempotencyKey": "<idempotencyKey>",
"title": "<title>",
"source": "<source>"
},
"name": "begin_document_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| source | Yes | ||
| replace | No | ||
| htmlMode | No | static | |
| workspaceId | No | ||
| workspace_id | No | ||
| idempotencyKey | Yes |