run_extendscript
Execute custom ES3 ExtendScript inside Adobe Illustrator to automate tasks beyond built-in tools. Run your own script body with an optional timeout for custom vector workflows.
Instructions
Escape Hatch: Execute custom ES3 ExtendScript inside Adobe Illustrator (var, function() {}, return ...;).
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": {
"script": "<script>"
},
"name": "run_extendscript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | Body of an ES3 ExtendScript function to run inside Illustrator | |
| timeoutMs | No | Timeout in milliseconds |