Read your documents
read_documentsReads documents this account owns (not documents someone sent it to sign). Nothing is changed. list: lists the account's documents, newest first, 25 per page. Filter by folder (folderId from read_account folders, or "none" for documents in no folder), status or a title/signer search. Pass nextCursor back as cursor for the next page. get: returns one document: title, status, pages, signer, revision, signing state, its fields (positions are fractions of the page, origin top-left, rounded to 5 decimals) and fieldsHash, which identifies the exact stored field list. A large document costs about 75 tokens per field: pass page to get only that page's fields (fieldCount still counts all of them). preview: renders one page (page, required) with its saved fields drawn on (boxes coloured by type, labelled with id, type and label) as a JPEG. Use it to check placement and to show the user; call it again for each changed page after edit_documents save_fields. ready: lists what still blocks sending a draft, with the revision to pass to email_document send and the app link where the user can review it. Where guided questions for the signer are available it also says where they stand; they are optional and never block sending. review: checks the saved fields of a document or template for mistakes (duplicates, optional signatures, dates too narrow). With jobId of a finished prepare detect run on this revision it also lists boxes no field covers (possibly_missing) and fields the detector saw nothing under or reads as another type (not_seen, type_differs); an unfinished or older job is ignored and detection.used says why. Leads only: read_documents preview each page in pagesToCheck and decide, then fix with edit_documents save_fields. detection: returns a prepare detect job: status (running, done, failed), suggested fields (not saved; they keep the ids of fields already on the document), losses (PDF form fields not representable exactly, e.g. radio groups as checkboxes) and the revision it ran on. Waits up to waitSeconds for a running job, so call it once, and again only if it still says running. Keep the suggestions by passing the jobId to edit_documents save_fields. questions: returns a document's guided signer questions: status (none, generating, draft, approved, failed), stale (fields changed since, so the signer will not see them), the overview and the sections of questions. Each question has text, kind, fieldIds, options [{label, fieldId}] or parts [{part, fieldId}], required, help, format, role; a follow-up has showIf {questionId, optionFieldIds} and is asked only when one of those options is selected. unassignedFieldIds (they block approval) and problems list what needs attention. Pass sections back to edit_documents save_questions to change them. download_completed: returns a one-time download link to the final PDF of a completed document, valid for 10 minutes and for one download. Give it to the user to click, or, if you can run commands and the user wants the file, download it yourself (the link is then used up; call again for another). download_certificate: returns a one-time download link, valid 10 minutes and for one download, to the certificate of completion of a completed document (a separate PDF: who signed, when, from where, what they reviewed; the completed PDF carries the same Document ID on every page). Give the link to the user, or download it yourself if you can run commands and the user wants the file.
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": {
"action": "<action>"
},
"name": "read_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number (get, preview; required for preview) | |
| jobId | No | jobId from prepare detect (review, detection; required for detection) | |
| query | No | Matches the title or the signer's name or email (list) | |
| action | Yes | ||
| cursor | No | nextCursor from the previous page (list) | |
| status | No | Only documents with this status (list) | |
| folderId | No | A folder id, or "none" for documents not in a folder (list) | |
| documentId | No | Document id (get, preview, ready, review, questions, download_completed, download_certificate; required) | |
| waitSeconds | No | Wait up to this long for a running job (default 20) (detection) |