Upload a document to translate
upload_documentSend one source document (PDF, image, Word...) before ordering. Returns an upload_id for get_quote and create_order, and the pages counted in it. Files are kept 24 hours until used in an order; sending the same file again returns the same upload_id.
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>"
},
"name": "upload_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Or a public https link to download the file from (up to 50 MB). | |
| filename | Yes | File name with extension, e.g. 'birth-certificate.pdf'. | |
| content_base64 | No | The file's bytes, base64-encoded (up to 15 MB). |