Initialize document upload
air_upload_document_initStart a presigned document upload for a project. Get an uploadUrl and s3Key, PUT the file bytes, then complete the upload.
Instructions
Start a presigned upload: returns uploadUrl and s3Key. PUT the raw file bytes to uploadUrl with the same contentType you passed here and no other headers — the URL signs content-type and host only, so any x-amz-* header (notably the checksum headers AWS SDKs add by default) invalidates the signature. Then call air_upload_document_complete with the returned s3Key. Requires projects:write.
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": {
"projectPid": "<projectPid>",
"filename": "<filename>",
"contentType": "<contentType>"
},
"name": "air_upload_document_init"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Original filename including extension | |
| projectPid | Yes | ||
| contentType | Yes | MIME type, e.g. application/pdf |