apple_textedit
Create, open, edit, and save TextEdit documents on macOS. Retrieve text content, close documents, and list open ones for structured automation.
Instructions
Control TextEdit. Actions: create, open, get_text, set_text, save, close, list_open.
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": {
"action": "<action>"
},
"name": "apple_textedit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | POSIX path to the file | |
| text | No | Initial text content for the document | |
| action | Yes | create: Create a new TextEdit document with optional text; open: Open a file in TextEdit; get_text: Get text of the front TextEdit document; set_text: Set text of the front TextEdit document; save: Save the front TextEdit document; close: Close the front TextEdit document; list_open: List open TextEdit documents | |
| confirm | No | Set to true to confirm a protected/destructive action. Without this, protected actions return a preview instead of executing. |