Upload File (HTTP)
upload_fileGet a presigned upload URL for use with ocr_to_markdown, transcribe_to_markdown, or extract_to_markdown in HTTP mode. After calling this tool, PUT the file to upload_url (with the correct Content-Type header), then pass object_key as uploaded_file_reference to the processing tool.
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>",
"file_size": "<file_size>",
"mime_type": "<mime_type>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Optional Frenchie API key (fr_...). Falls back to the FRENCHIE_API_KEY env var when omitted. | |
| filename | Yes | Original filename with extension (e.g. 'report.pdf'). | |
| file_size | Yes | File size in bytes. | |
| mime_type | Yes | MIME type (e.g. 'application/pdf', 'audio/mpeg'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expires_in | Yes | URL expiry in seconds | |
| object_key | Yes | Pass this as uploaded_file_reference to ocr_to_markdown, transcribe_to_markdown, or extract_to_markdown | |
| upload_url | Yes | Presigned URL — PUT the file here with the correct Content-Type header |