PrivaTools

v0.1.0
io.github.ethereaglehq/privatools Checked 3 days ago Published 10 days ago

Stateless privacy-first PDF, image, document, and media processing tools via PrivaTools API.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

privatools_list_tools Search PrivaTools Operations

Search and filter PrivaTools /api/v1 operations by keyword query, category, or mode (sync/async). Uses the live /api/v1 catalog (or OpenAPI spec) with an automatic offline fallback.

ParameterTypeDescription
categorystringOptional category filter (case-insensitive substring, e.g. 'PDF processing', 'Accessibility', 'Image', 'Audio and video').
limitintegerMaximum number of operations to return (default 50).
modestringFilter by execution mode: 'all' (default), 'sync', or 'async' (operations supported by /api/v1/jobs).
offsetintegerPagination offset (default 0).
querystringOptional keyword search across operation slugs, tool aliases, summaries, and categories (e.g. 'compress', 'watermark', 'accessibility', 'exif').

privatools_describe_tool Inspect PrivaTools Operation Schema

Inspect the exact endpoint, HTTP method, accepted file upload fields, form/query parameters, constraints, cost, async support, and response media types for a PrivaTools operation slug or alias.

ParameterTypeDescription
operation *stringOperation slug, path, or tool alias (e.g. 'compress', 'compress-pdf', 'merge', 'accessibility-check', 'remove-watermark/detect').

privatools_run_tool Run PrivaTools File Operation

Execute any synchronous PrivaTools /api/v1/<operation> file or document tool against local file(s) and parameters. Binary outputs are written directly to disk (without overwriting unless overwrite: true) and concise metadata + X-* headers are returned; JSON-returning tools return their JSON response directly. See the full OpenAPI specification at https://api.privatools.me/api/v1/openapi.json and MCP documentation at https://privatools.me/mcp.

ParameterTypeDescription
operation *stringOperation slug, path, or tool alias (e.g. 'compress', 'merge', 'accessibility-check', 'view-exif', 'remove-watermark/detect').
file_fieldstringOptional multipart upload field name override (auto-detected from API schema when omitted; defaults to 'file' for file_path or 'files' for file_paths).
file_fieldsobjectOptional map of multipart field names to local file path(s) (string or array of strings) for tools with distinct named file inputs (e.g. { file1: 'a.pdf', file2: 'b.pdf' }).
file_pathstringLocal path to a single input file.
file_pathsarrayLocal paths to multiple input files, in order.
output_pathstringOptional destination file path for binary output. If omitted, output is auto-named next to the input file without overwriting existing files.
overwritebooleanAllow replacing an existing file at output_path (default false).
paramsobjectOptional operation parameters (form fields for multipart endpoints, JSON fields for JSON endpoints, or query params for GET endpoints).

privatools_submit_job Submit Async PrivaTools Job

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.

ParameterTypeDescription
operation *stringAsync operation slug (e.g. 'merge', 'compress', 'grayscale', 'pdf-to-text').
file_pathstringLocal path to a single PDF input file.
file_pathsarrayLocal paths to multiple PDF input files, in order.
idempotency_keystringOptional Idempotency-Key (1–128 visible ASCII chars) for safe retries. Auto-generated when omitted.
optionsobjectOptional operation-specific options object (e.g. { level: 'recommended' } for compress).

privatools_job_status Check or Download PrivaTools Job

Poll an asynchronous job's status (action: 'status') or download its completed artifact to output_path (action: 'download'). Read-only on the server — use privatools_delete_job to cancel or delete a job.

ParameterTypeDescription
job_id *stringJob ID returned by privatools_submit_job.
actionstringRead-only action to perform: 'status' (poll) or 'download' (fetch completed artifact). To delete or cancel a job, call privatools_delete_job.
downloadbooleanWhen action is 'status' and the job has succeeded, automatically download the artifact in the same call.
output_pathstringDestination file path when downloading a binary artifact (or saving a JSON artifact to disk).
overwritebooleanAllow replacing an existing file at output_path (default false).

privatools_delete_job Delete PrivaTools Async Job

Permanently delete a completed PrivaTools asynchronous job's server-side artifact or cancel a queued/running job (DELETE /api/v1/jobs/{job_id}).

ParameterTypeDescription
job_id *stringJob ID returned by privatools_submit_job to cancel or delete.