Upload a document and get a translation quote
upload_documentUpload a local PDF, DOCX, EPUB, or image to get an exact translation price before starting or paying; uploads are free and return job ID, word count, and next steps.
Instructions
Upload a local PDF (text or scanned), DOCX, EPUB or image (PNG, JPG, WEBP, TIFF, BMP, GIF) to PageTranslate and get the exact price to translate it. Uploading is free and does not start or charge anything. Returns job_id, word count, price and what to do next. Max 100 MB and 1,000 PDF pages; uploads are rate limited per account.
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": {
"file_path": "<file_path>",
"target_language": "<target_language>"
},
"name": "upload_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path of the file on this computer. | |
| target_language | Yes | Language code to translate into, e.g. es, fr, de, it, ja, ko, ar, hi, ru. Special codes: pt (Portugal) or pt-BR (Brazil), zh (Simplified) or zh-TW (Traditional), fil (Filipino), no (Norwegian). |