Get the state and result of a document
get_documentReturns the masked document text and its pagination when masking is complete. masked_text is returned in parts of up to 100,000 characters. text_offset defaults to zero. text.next_offset is the text_offset of the next part, or null at the end. Blackout results contain no masked_text. Labels stay in the text: original values are never returned by this connection and are restored only by the uploader in the Redactic console with the restore map, which stays with the uploader. The result includes the status for the document_id. Pending statuses (waiting_for_upload, queued, processing) include retry_after_seconds, the suggested interval between status checks. The status is done when the result is ready and error when processing fails. A completed check returns a verdict and finding count. A completed redaction includes the file format when available. Results include available single-use download links for upload page results, and the widget handles downloads for widget uploads. Download links open in the uploader’s signed-in browser. Redaction results expire by expires_at, normally 120 minutes after upload, or sooner after downloads. Reads are limited to 120 requests per minute per connection.
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": {
"document_id": "<document_id>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The document_id associated with the upload link. | |
| text_offset | No | Zero-based character offset of the requested masked text part. The default is 0, and text.next_offset identifies the next part. |