# get_doc

> One Doc in full: title, status, revision (pass it to update_doc and send_doc), visibility, page_size, roles (the people it is for, in signing order; their keys are send_doc's people keys), signing_order, can_edit, can_share, editing_by, where it came from (contract_template_id, ai_drafted), and for a sent Doc envelope_id and pdf_document_id.

Tool of the AppliFlo MCP server at `https://appliflo.com/api/mcp`. Kind: read: it only looks, so clients can run it without asking.

One Doc in full: title, status, revision (pass it to update_doc and send_doc), visibility, page_size, roles (the people it is for, in signing order; their keys are send_doc's people keys), signing_order, can_edit, can_share, editing_by, where it came from (contract_template_id, ai_drafted), and for a sent Doc envelope_id and pdf_document_id. The content comes as `markdown` (default; boxes and signatures as tokens, variables as {{key}}) or, with format: "json", as the editor's TipTap JSON `content` (exact: box ids, fixed values, formatting Markdown can't hold). Markdown here is AppliFlo's doc format: # / ## / ### headings, paragraphs, - and 1. lists, > quotes, --- dividers, **bold** and *italic*, plus tokens: {{client.full_name}} (a variable filled from the CRM at send), [[box role=client kind=text label="Passport number"]] (a box a person fills; kind text, date, number, email, phone, checkbox, dropdown with options="A|B", initials), [[signature role=client]] (a signature block) and [[pagebreak]]. role is a role's name (as get_doc lists them) or key.

## Inputs

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `doc_id` | string | yes | A Doc's doc_id (from list_docs, or list_documents' kind 'doc' rows). Up to 80 characters |
| `format` | string | no | markdown (default) or json (the TipTap document). One of: markdown, json |
