Create document upload URL
create_document_upload_urlStep 1 of uploading a real file: reserves a document record (status 'pending_upload') and a one-time signed upload URL. PUT the raw file bytes directly to upload_url (e.g. curl -T /path/to/file "$upload_url") — the bytes never pass through this MCP server. Then call finalize_document_upload with document_id. The URL expires in ~2 hours; if the PUT never happens, call delete_document on document_id to avoid an orphaned pending record.
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": {
"title": "<title>",
"file_name": "<file_name>"
},
"name": "create_document_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| title | Yes | ||
| agent_id | No | ||
| category | No | ||
| entity_id | No | ||
| file_name | Yes | ||
| mime_type | No | ||
| project_id | No | ||
| description | No | ||
| entity_type | No |