syncpen_suggest_edit
Propose a document edit as a pending suggestion requiring human approval. Anchor changes by character offsets or a unique text snippet for replacement.
Instructions
Propose an edit to a document as a pending suggestion that a human accepts or rejects in the editor. The document is NOT changed until accepted. Use this instead of syncpen_update when you want human approval. Anchor the edit either by character offsets {from,to} or by a unique snippet {text} to replace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional rationale shown to the human alongside the suggestion. | |
| anchor | Yes | Where to apply the edit. Provide EITHER {from,to} character offsets, OR {text} — a snippet that occurs exactly once in the document and will be replaced. | |
| newText | Yes | The replacement text for the anchored range. | |
| documentId | Yes | The ID of the document to suggest an edit on |