load_document
Load a contract file to get normalized paragraph text, citation anchors, language mix, and document warnings, providing a structured starting point for legal review and analysis.
Instructions
Load a contract and return its normalised text with a citation anchor on every paragraph, plus the detected language mix. Start here. Returns the format, page count where the format has pages, per paragraph text direction for correct rendering of mixed Arabic and English, any encoding repairs that were applied, and any warnings such as a PDF with a lossy or missing text layer. Paragraph anchors look like "P12" and are the same anchors every other tool reports.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the document. Accepts .pdf, .docx or a plain text file (.txt, .md). Absolute paths are safest. The format is detected from the file content, not the extension. | |
| includeText | No | Include the full text of every paragraph. Default true. Set false for a structural overview of a long document without the body text. | |
| maxParagraphs | No | Return at most this many paragraphs. Omit for all of them. |