Update Lovelace resource
dashboards_update_dashboard_resourceReplace the URL and type of an existing Lovelace resource to repoint it at a new file or change its declared type.
Instructions
Replace the URL and type of an existing Lovelace resource.
Sends resource_id, url and resource_type to
lovelace/resources/update, replacing both fields of that resource
entry — the previous URL/type are not recoverable afterwards. Like
dashboards_add_dashboard_resource, this tool never fetches url
itself.
Use when: repointing an existing resource entry at a new file or
changing its declared type.
Not for: registering a brand-new resource — use
dashboards_add_dashboard_resource.
Returns: {"status": "updated", "resource_id": ..., "url": ..., "resource_type": ..., "result": ...} on success.
Errors: {"error": "resource_type must be 'module', 'js', or 'css'"}
when resource_type is anything else.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | New resource URL, replacing the current one. | |
| resource_id | Yes | Numeric resource id to update, from dashboards_get_dashboard_resources. | |
| resource_type | No | Resource kind: 'module' (ES module JS), 'js' (legacy script), or 'css'. Defaults to 'module'. | module |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||