| name | editorbridge-safe-selection-rewrite |
| description | Safely rewrite selected text in MarkEdit, Textastic, TextEdit, or iA Writer through EditorBridge. |
EditorBridge Safe Selection Rewrite
Use this skill when the user asks to rewrite, polish, summarize, translate, or otherwise change only the current selection in a GUI editor.
Prefer native tools named editor_* when available. If native tools are unavailable, use the editorbridge-mcp server with the same tool names.
Workflow:
- Call
editor_check_permissions when permission status is unknown.
- Call
editor_read_selection.
- If no selection exists or selection reads are unsupported, stop and ask the user to select text or confirm a document-wide operation.
- Rewrite only the selected text. Preserve Markdown structure, links, frontmatter, code fences, list indentation, and trailing newlines.
- Call
editor_replace_selection with the replacement text only when the user requested an edit.
- Read the selection or document again when possible and verify the expected replacement is present.
Do not use whole-buffer writes for a selection rewrite. Do not fall back to blind typing or clipboard automation unless a future EditorBridge tool explicitly reports that fallback as supported.