upsert_shopify_theme_file
Create or overwrite one file (Liquid/CSS/JS/JSON source code) in an UNPUBLISHED Shopify theme — this is how agents build the storefront website on a draft theme. Refuses the LIVE (MAIN) theme; publishing a theme to buyers is a separate approval-gated step. Use when a person or agent is building or editing the site's draft theme.
Routing: Shopify: write a theme source file on an UNPUBLISHED theme — refuses the live theme
[sensitive-tier — first use may require a manager's approval; a from-now-on approval makes future calls seamless, a just-once approval re-asks next time.]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The full file content (≤200000 chars) | |
| filename | Yes | Theme path, e.g. 'sections/hero.liquid' or 'assets/custom.css' | |
| theme_id | Yes | Theme gid (gid://shopify/OnlineStoreTheme/...) — must NOT be the live theme | |
| companyId | Yes | FreedomOS company id to act within (you must be a member). Required for company-scoped tools. |