safari_replace_editor
Replaces all content in supported code editors (Monaco, CodeMirror, Ace, ProseMirror) through native APIs, enabling agents to set complete code or text reliably.
Instructions
Replace ALL content in a code editor (Monaco, CodeMirror, Ace, ProseMirror). Use ONLY for code editors — Airtable automations, GitHub gists, CodePen, n8n code nodes, etc. NOT for rich text editors like Medium/LinkedIn (use safari_fill for those). Detects ProseMirror/Draft.js/CodeMirror/Monaco/Ace and uses their native API.
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": {
"text": "<text>"
},
"name": "safari_replace_editor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | No | Optional short purpose of this step, shown to the user in the cursor's status pill (e.g. 'to save the settings'). The page can read it: never put passwords, codes, card numbers or other private data in it. | |
| text | Yes | The complete code/text to put in the editor | |
| receipt | No | Omit it: Daylight has no tab receipts and refuses a call that passes one |