Fetch JSON Results
fetch_json_resultsExport selected Suparse document IDs as task-grouped JSON into the MCP response. Retrieve extraction results directly when you need JSON only, not files or ZIP artifacts.
Instructions
Export one or more existing Suparse document IDs as JSON into the MCP response, grouped by task in results (task_id, original_file, total_documents_extracted, documents). Use fetch_document_result for a direct single-document read without submitting an export; use download_results for large results, local files, CSV, XLSX, or Google Sheets. This tool only exports JSON and does not unpack ZIP artifacts. On export timeout, retain export_job_id for the export-job tools or replay the identical export with its retained idempotency_key. Does not delete documents; cleanup is explicit through delete_documents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_url | No | ||
| export_type | No | Defaults to unified. JSON currently has the same task-group shape for original and unified. | |
| document_ids | Yes | Suparse document IDs to export. | |
| idempotency_key | No | Optional UUID idempotency key. Retain this key and replay the identical document IDs, format, export type, and layout if submission confirmation is lost. | |
| wait_timeout_ms | No | Maximum time in milliseconds to wait for an accepted export job to complete; defaults to 60000. This bounds completion waiting, including polling retries, not submission or transfer. Allow enough total time in the MCP client for all phases. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | ||
| results | Yes | ||
| export_type | Yes | ||
| export_job_id | No | ||
| idempotency_key | No |