indesign_run_trusted_script
Run a user-approved .jsx file from the trusted script directory to execute local InDesign automation after explicit confirmation; only relative paths are accepted.
Instructions
Run one user-approved .jsx file beneath INDESIGN_TRUSTED_SCRIPT_DIR. Only relative paths are accepted. This executes trusted local InDesign code, which can change documents, files, and preferences; it never starts a new InDesign instance. Call only after the user explicitly approves the specific script.
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_path": "<script_path>",
"confirm": "<confirm>"
},
"name": "indesign_run_trusted_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Set true only after the user explicitly approves running this specific JSX file. | |
| script_path | Yes | Relative .jsx path beneath the configured trusted script folder; traversal and absolute paths are rejected. |