Create document
create_documentCreate a document METADATA row. The file itself must already exist in the private 'documents' storage bucket — pass its path as object_key (use create_document_upload_url first to obtain an upload URL). Binary content cannot be sent through MCP.
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": {
"name": "<name>",
"object_key": "<object_key>"
},
"name": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| folder_id | No | ||
| mime_type | No | default application/octet-stream | |
| object_key | Yes | Path inside the 'documents' storage bucket | |
| size_bytes | No | ||
| visibility | No | public|internal|restricted (default internal) | |
| description | No | ||
| target_tenant_id | No | Platform super-admins only: operate on this tenant instead of your own. |