request_receipt_upload
Step 1 of 2 for uploading a local receipt file. Returns a presigned S3 PUT URL (uploadUrl), a signed uploadKey, and a literal curlCommand to execute in your code sandbox to stage the file. The file bytes are sent directly to S3 — they never enter the conversation context. After the curl PUT succeeds, call finalize_receipt_upload with the returned uploadKey to run OCR + matching. Use this for any local file (PDF, JPEG, or PNG, max ~5 MB).
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>",
"fileSizeBytes": "<fileSizeBytes>"
},
"name": "request_receipt_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | Original file name (used for the audit trail). E.g. 'rent-may.pdf'. | |
| mimeType | Yes | MIME type. Only PDF, JPEG, and PNG are accepted by the pipeline. | |
| fileSizeBytes | Yes | Size of the file in bytes (use `wc -c <file>` or your stdlib's stat). Signed into the URL — the S3 PUT will fail if the actual body doesn't match. |