Get a script's stored YAML config
automations_get_script_configFetch a Home Assistant script's stored YAML config by id, returning its alias, sequence, fields, and mode, or None when no script matches. Use it for configuration, not runtime state.
Instructions
Get a script's stored YAML config as a dict.
Requests /api/config/script/config/<id> over HTTP and returns the
parsed JSON, or None on a 404.
Not for: the script's current runtime state — use
automations_list_scripts or entities_get_entity for that.
Returns: dict with the script's alias, sequence, fields and
mode, or None when no script has that id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_id | Yes | Script id to look up, bare (e.g. 'goodnight') or prefixed ('script.goodnight'); the 'script.' prefix is stripped if present. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |