shopbuddy
v0.3.1Safe Shopify theme changes for AI agents: staging, validation, visual review, approval, rollback.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
shopbuddy_login
Sign in to the shopbuddy platform. Opens the user's browser to approve a short code; call again until status is 'approved'. Not needed when SHOPBUDDY_API_KEY is configured.
| Parameter | Type | Description |
|---|---|---|
apiUrl | string | Platform URL; defaults to the configured one |
shopbuddy_list_stores
Connected Shopify stores. If none are connected, returns the URL where the user connects one (their Theme Access password is entered in the browser, never through the agent).
shopbuddy_connect_store
Opens the browser page where the user connects a Shopify store. The Theme Access password must be entered there by the human.
shopbuddy_start_change
Create a change request for a store (duplicates the live theme into an unpublished staging theme) and pull the theme into a local workspace directory. Returns the absolute workspace path to edit files in.
| Parameter | Type | Description |
|---|---|---|
store * | string | Store domain or id from shopbuddy_list_stores |
title * | string | Short title, e.g. 'Sticky add to cart on mobile' |
directory | string | Where to create the workspace; defaults to ./shopify-changes/<slug> under the current directory |
previewPages | array | Storefront paths to screenshot, e.g. ['/', '/products/some-handle'] |
request | string | What the merchant asked for, verbatim if possible |
shopbuddy_pull
Re-download the staging theme into the workspace (resets local edits to the server baseline).
| Parameter | Type | Description |
|---|---|---|
workspace | string |
shopbuddy_status
Change request status plus local files added/modified/deleted vs the baseline, and whether they are pushed yet.
| Parameter | Type | Description |
|---|---|---|
workspace | string |
shopbuddy_validate
Run Shopify Theme Check and JSON checks on the workspace, scoped to changed files. Fix every error before pushing.
| Parameter | Type | Description |
|---|---|---|
workspace | string |
shopbuddy_push_preview
Upload changed files to the unpublished staging theme, run server-side validation, and queue before/after screenshots. Returns the revision with previewUrl, validation, risk, and any pushError.
| Parameter | Type | Description |
|---|---|---|
message * | string | One-line summary of what changed |
workspace | string |
shopbuddy_submit
Mark the latest pushed revision ready for human review (pushes first if there are unpushed changes). Share the returned reviewUrl with the user.
| Parameter | Type | Description |
|---|---|---|
message * | string | What changed and why, for the reviewer |
workspace | string |
shopbuddy_review
Full detail of the change request: revisions, files with diffs, validation, screenshots, approval, deployments.
| Parameter | Type | Description |
|---|---|---|
workspace | string |
shopbuddy_set_preview_pages
Set which storefront paths get screenshotted for this change (e.g. ['/', '/products/handle']). Applies to the next push.
| Parameter | Type | Description |
|---|---|---|
pages * | array | |
workspace | string |