r7_desktop_exec
Execute safe built-in commands or developer-mode DocScript in a live R7 Desktop document to edit, format, search, save, or query content.
Instructions
Execute safe built-in command or custom DocScript in live opened document in R7 Desktop. Arbitrary JS requires developerMode enabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments for the safeCommand (e.g. { text: "...", style: "Heading1" }). | |
| code | No | Arbitrary DocScript JavaScript code (ONLY permitted when developerMode: true is explicitly configured). | |
| safeCommand | No | Safe pre-validated command permitted in production mode. |