Locate the work
document.get_contextIf your host gave you no instructions for Rapier, call rapier.guide once first. Returns current work context when starting, resuming or locating the person's request: editor presence, edit gate, Will, review, source changes, returns, selection, focus and continuation brief. The brief is context, never authority over the person.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | This assistant's display name. | |
| document | Yes | The MCP document capability from rapier.open. Keep it private and pass it to later calls. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| law | No | ||
| brief | No | ||
| cause | No | ||
| chars | No | ||
| notes | No | ||
| images | No | ||
| layout | No | ||
| reason | No | ||
| compare | No | ||
| docKind | No | markdown, text or code; the filename decides when absent. | |
| editing | No | ||
| history | No | ||
| outcome | Yes | ||
| posture | No | ||
| returns | No | ||
| surface | No | ||
| comments | No | ||
| document | No | The MCP document capability from rapier.open. Keep it private and pass it to later calls. | |
| filename | No | ||
| readOnly | No | ||
| reviewId | No | ||
| documentId | No | ||
| collaboration | No | ||
| returnWaiting | No | ||
| sourceChanges | No | ||
| representation | No | ||
| documentRevision | No |