EditorBridge Editor Safety
Use this skill when deciding how to automate a supported GUI editor through EditorBridge.
Start with editor_check_permissions and editor_discover if permission and capability status are not already known. If Accessibility is not trusted, use editor_request_accessibility or editor_open_accessibility_settings and wait for the user to grant access before attempting AX-backed operations. Then prefer the smallest operation that satisfies the user request.
Editor guidance:
- MarkEdit: use the
markeditadapter for agentic workflows. Snapshot before anysourceor whole-buffer mutation because writes can touch disk immediately. - Textastic: use the
textasticadapter for surgical range workflows through Accessibility. Prefereditor_select_rangepluseditor_read_selectionbefore replacement. - TextEdit: use the
texteditadapter as a generic baseline. Confirm plain-text behavior before treating rich-text documents as Markdown. - iA Writer: use the
ia-writeradapter for surgical workflows. Treat scripted text writes as live-buffer mutations that may autosave after a delay.
Safety rules:
- Prefer selection operations over document-wide operations.
- Require snapshots for whole-buffer writes and patches.
- Stop on unsupported capabilities instead of inventing an automation fallback.
- Verify after mutation by reading the selection or document again.
- Use undo or snapshot restore only when the target editor and document are still unambiguous.