Inspect a passage
document.read_contextReads exact source, a drawing recipe or a comparison difference when inspecting work before an edit. The returned handle authorizes exactly the disclosed content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | One past the last UTF-16 unit. | |
| ref | No | An outline ref to read. | |
| agent | No | This assistant's display name. | |
| limit | No | Units per page. | |
| start | No | The first UTF-16 unit. | |
| cursor | No | Continues a long passage. | |
| document | Yes | The MCP document capability from rapier.open. Keep it private and pass it to later calls. | |
| editorKey | No | The editor key from the Apps UI resource, held by the host and editor alone. | |
| return_id | No | A received page from get_context or wait_for_user; read by start and limit, without an edit handle. | |
| operation_id | Yes | A fresh random id for this call (a UUID works). Resend it only to retry this call; the retry replays the recorded result. | |
| context_handle | No | A handle from find or an earlier read, or a change handle while a comparison is open. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| name | No | ||
| text | No | ||
| cause | No | ||
| start | No | ||
| handle | No | ||
| images | No | ||
| layout | No | ||
| reason | No | ||
| status | No | ||
| omitted | No | ||
| outcome | Yes | ||
| removed | No | ||
| complete | No | ||
| coverage | No | ||
| document | No | The MCP document capability from rapier.open. Keep it private and pass it to later calls. | |
| inserted | No | ||
| reviewId | No | ||
| change_id | No | ||
| omissions | No | ||
| remaining | No | ||
| return_id | No | ||
| documentId | No | ||
| receivedAt | No | ||
| next_cursor | No | ||
| expires_in_ms | No | ||
| removed_chars | No | ||
| comment_handle | No | ||
| inserted_chars | No | ||
| representation | No | ||
| complete_handle | No | ||
| documentRevision | No |