Run PrivaTools Operation
privatools_run_toolExecute any synchronous PrivaTools operation (PDF, image, office, audio/video, QR, OCR, accessibility, etc.). Supply file inputs via public https:// URLs (up to 500 MiB matching the website MAX_UPLOAD_MB; max 2 concurrent fetches per IP, 30s idle timeout, 180s total deadline) or inline base64 (up to 25 MiB decoded — JSON-RPC payload limit). JSON-returning operations return data inline; binary outputs (up to 500 MiB) return a short-lived download URL (15-minute TTL) and a resource_link block. Works anonymously without an account; optional X-API-Key header uses /api/v1 quota. Call privatools_describe_tool first for parameter details. 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_run_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Multiple input files (url or base64) with optional per-file filename and multipart field name. | |
| params | No | Optional operation parameters (form fields, JSON body fields, or query params). | |
| file_url | No | Single input file as a public https:// URL (SSRF-protected; up to 500 MiB, matching the website upload cap). | |
| filename | No | Optional filename with extension for file_base64 or file_url (e.g. 'report.pdf'). | |
| file_urls | No | Multiple input files as public https:// URLs, in order (up to 500 MiB each). | |
| operation | Yes | Operation slug, path, or alias (e.g. 'compress', 'merge', 'rotate', 'pdf-to-text', 'accessibility-check'). | |
| file_field | No | Optional multipart upload field name override (auto-detected from schema when omitted). | |
| file_base64 | No | Single input file encoded as inline base64 (max 25 MiB decoded JSON-RPC cap; use file_url for larger files up to 500 MiB). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Inline JSON response object for JSON-returning operations. | |
| bytes | No | ||
| headers | Yes | ||
| filename | No | ||
| operation | Yes | ||
| expires_at | No | ||
| media_type | Yes | ||
| download_url | No | ||
| expires_in_seconds | No |