update_live_shopify_theme_file
Overwrite one existing file (Liquid/CSS/JS/JSON) on the LIVE (MAIN) Shopify theme — buyers render the change immediately. Approval-tier with expected_updated_at lock from get_shopify_theme_asset: refuses if the file changed since review, refuses unpublished themes (those use upsert_shopify_theme_file), and refuses creating a new live file. Use when the operator approves a single-file live-theme fix. Swapping the entire storefront is publish_shopify_theme.
Routing: Shopify: overwrite one LIVE theme source file — approval-tier, lock-checked
[outbound-tier — EVERY call needs a manager's approval (per-send human rail): each request queues its own approval card and sends exactly once on approve. There is no standing grant for this tool.]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The full replacement file content (≤200000 chars) | |
| filename | Yes | Theme path, e.g. 'layout/theme.liquid' or 'assets/custom.css' | |
| theme_id | Yes | Theme gid — must currently be the LIVE (MAIN) theme | |
| companyId | Yes | FreedomOS company id to act within (you must be a member). Required for company-scoped tools. | |
| expected_updated_at | Yes | The file's updatedAt as read from get_shopify_theme_asset when the edit was reviewed (ISO) |