Create invoice upload URL
create_invoice_upload_urlMint a short-lived signed URL for uploading an invoice PDF or image. Three steps: (1) call this tool with filename, mimeType, and optional size; (2) HTTP PUT the raw file bytes to signedUploadUrl with Content-Type set to the same mimeType before expiresInSeconds elapses; (3) call invoice_processor with the returned path, bucket, and mimeType. Do not POST the bytes to this tool. Returns signedUploadUrl, path, bucket, expiresInSeconds, maxBytes, and allowedMimeTypes.
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": {
"filename": "<filename>",
"mimeType": "<mimeType>"
},
"name": "create_invoice_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | File size in bytes. Rejected if it exceeds the returned maxBytes. | |
| filename | Yes | Original filename including extension (e.g. invoice.pdf). | |
| mimeType | Yes | MIME type of the invoice (PDF or image). Must match the Content-Type header on the subsequent HTTP PUT. |