run_omni_js
Execute arbitrary Omni Automation JavaScript in OmniGraffle to perform custom operations not covered by other tools, leveraging full Omni Automation API access.
Instructions
Execute arbitrary Omni Automation JavaScript inside OmniGraffle. The code runs in OmniGraffle's JS context with access to the full Omni Automation API. Use for operations not covered by other tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Omni Automation JavaScript code. Has access to `document`, `app`, `Canvas`, `Shape`, `Line`, `Color`, `Rect`, `Point`, `Size`, etc. Return a result by making the last expression a string (e.g. JSON.stringify({...})). |