get_script_decisions
Reads a script's decision state on this device—providers, question-list hashes, code issues and today's decisions—so verify settings before changes or after export.
Instructions
Read Script Decisions on this device: the typed decisions scripts make through @grant CM_decisions. Returns whether agents may manage it (agentAccess.scriptDecisions; the person turns it on under Full access in Customaise Settings, Agent permissions), sign-in and plan (Power User is required), whether this device is allowed (deviceEnabled) or paused (locallyPaused), which provider keys are saved, and every script that uses CM_decisions or has a provider: its provider (jev, openai-decisions or null) and state, one of ready, off, choose_again (its code or this device changed since the provider was chosen; reason says which), paused (pausedReason loop_repeat or loop_runaway) or invalid (issue). chosenByAgent marks a provider an agent chose. With scriptId it also returns that script's question lists (sets: hash, enabled, questions), the problems found in its code (issues, with line numbers) and today's decisions on this device (rowsToday). Use it before set_script_decisions, which names question lists by these hashes, and after export_script to check a script's provider. Reads only; nothing is sent to a provider. Needs extension 1.4.0 or later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scriptId | No | A script ID from list_scripts. Omit to list every script that uses CM_decisions or has a provider. |