Submit Async PrivaTools Job
privatools_submit_jobSubmit an asynchronous background job for supported heavy operations ('merge', 'compress', 'grayscale', 'pdf-to-text'). Works anonymously out of the box (returning an unguessable capability job_id, subject to per-IP concurrency limits and 1-hour artifact retention) or with an optional X-API-Key / Authorization: Bearer header for key-scoped /api/v1 quotas. Accepts https:// URLs or base64 PDF inputs. Poll progress with privatools_job_status and clean up with privatools_delete_job. Full OpenAPI documentation: https://api.privatools.me/api/v1/openapi.json
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": {
"operation": "<operation>"
},
"name": "privatools_submit_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Multiple PDF input files (url or base64) in order. | |
| options | No | Optional operation-specific options object (e.g. {'level': 'recommended'} for compress). | |
| file_url | No | Single PDF input file as a public https:// URL. | |
| filename | No | Optional PDF filename (e.g. 'input.pdf'). | |
| file_urls | No | Multiple PDF input files as public https:// URLs, in order. | |
| operation | Yes | Async operation slug (e.g. 'merge', 'compress', 'grayscale', 'pdf-to-text'). | |
| file_base64 | No | Single PDF input file encoded as base64 (max 25 MiB decoded). | |
| idempotency_key | No | Optional Idempotency-Key (1-128 visible ASCII chars) for safe retries. Auto-generated when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| job | Yes | ||
| headers | Yes | ||
| location | Yes | ||
| idempotency_key | Yes | ||
| idempotency_replayed | Yes |