Edit Rapier
editApply unique exact-text changes atomically as one undoable act (act is its id string), rename with filename, or set Note fields with note. At a moved numeric revision, literal edits apply if untouched since; whole-document replacement needs the current revision. A conflict returns current context; decide afresh. Drawings, painting, Water, comments and HTML objects use fenced text; a rapier-draw diagram stays live for the person, who drags its boxes and retypes its labels in the document; painting needs an open editor and an operation_id, and its result shows the painting.
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": "<document>",
"revision": "<revision>"
},
"name": "edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| agent | No | Your display name on acts; never grants authority. | |
| label | No | Short description of this edit in history. | |
| fields | No | Note fields, with note and without changes. | |
| changes | No | ||
| turn_id | No | Groups acts for undo {turn_id}. | |
| document | Yes | ||
| filename | No | ||
| revision | Yes | From your latest read or open; a Note's is its sha256. | |
| operation_id | No |