apple_textedit_set_text
Replace or append plain text in a named TextEdit document through macOS automation, enabling scripted edits that may autosave and sync; rich formatting can be removed.
Instructions
Replace or append TextEdit plain text. This can remove existing rich formatting; changes may autosave and sync. Pages requires a word-processing document.
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": {
"documentName": "<documentName>",
"text": "<text>"
},
"name": "apple_textedit_set_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | replace | |
| text | Yes | ||
| documentName | Yes | Exact name returned by list_documents; ambiguous duplicate names are rejected. |