run_script
Execute trusted ExtendScript in a background executor to automate Illustrator tasks. Provide inline script or a .jsx path to return plain JSON data.
Instructions
Run trusted ExtendScript directly in the shared background executor. Supply script or an existing UTF-8 .jsx script_path, not both. Use ES3-compatible syntax (no E4X or preprocessor directives); quote reserved property names. Syntax is checked before native execution. Return plain data with return; params contains JSON input. JSON compatibility is provided. UI, clipboard and dynamic script requests are rejected in background mode. This is not a security sandbox. Use batch_cards for long jobs; never replay an unconfirmed timeout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| script | No | ||
| script_path | No | ||
| document_path | No | ||
| timeout_seconds | No |