Read the text of a filing
read_case_documentReturn the text of one filing in a saved case — a complaint, a motion, an order, an exhibit — as the court archive extracted it from the PDF, so you can read, quote and explain what the document actually says rather than only its docket title. Takes a document_id from get_case_docket. Long documents come in parts: pass the returned next_offset to read on. When a document has no text (a scanned page nobody has run OCR on, or a copy only the court holds), the result says so and gives the PDF link if there is one; never guess at what an unread document says.
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": "read_case_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Where to start reading, in characters. Defaults to 0. | |
| matter_id | No | The CaseMagic matter id, as returned by create_case_passport or shown in an earlier result. Omit it when the account follows exactly one case and that is the one meant. | |
| document_id | Yes | The document_id of a document listed by get_case_docket. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | How to use the text. | |
| text | No | The text, or null when the archive holds none. | |
| error | No | Present only when the call failed: a code, a message and, where there is one, an action such as a link to give the user. | |
| offset | No | Where this slice starts. | |
| pdf_url | No | Link to the PDF. | |
| matter_id | No | The case. | |
| page_count | No | Pages. | |
| description | No | What the document is. | |
| document_id | No | The document. | |
| next_offset | No | Where the next slice starts, or null at the end. | |
| total_chars | No | Length of the whole text. | |
| docket_number | No | Entry number. | |
| attachment_number | No | Attachment number. |