Submit Async PrivaTools Job
privatools_submit_jobSubmit asynchronous background jobs for heavy PDF operations such as merge, compress, grayscale, and PDF-to-text; completed artifacts expire within one hour.
Instructions
Submit an asynchronous background job (POST /api/v1/jobs) for supported heavy/large operations such as 'merge', 'compress', 'grayscale', or 'pdf-to-text'. Completed job artifacts expire automatically within one hour and can be removed early with privatools_delete_job.
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 |
|---|---|---|---|
| options | No | Optional operation-specific options object (e.g. { level: 'recommended' } for compress). | |
| file_path | No | Local path to a single PDF input file. | |
| operation | Yes | Async operation slug (e.g. 'merge', 'compress', 'grayscale', 'pdf-to-text'). | |
| file_paths | No | Local paths to multiple PDF input files, in order. | |
| 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 | Asynchronous job record returned by /api/v1/jobs. | |
| headers | Yes | Relevant X-* and HTTP response headers returned by PrivaTools. | |
| idempotency_key | Yes |