get_page_templates
The Shopify theme's templates — which sections appear on each page type, in what order, with their settings.
When to use it
To understand page structure as the theme defines it, and to compare layouts across page types. Join with product data via template_suffix.
Ask for it like this
You do not name the tool. These are questions that make an assistant reach for it:
What sections are on my product template?
What will make you wrong
Caveats
- This is the static theme. get_page_dom_snapshot is what visitors actually rendered — use that when the two could disagree.
Parameters
templateName
Restrict to one template, for example product, collection or index.
Shared parameters it accepts
None. This tool is not date-scoped — it reports current state rather than a window.
Every tool also accepts merchantId, which resolves from your connection. You never pass it.
What comes back
JSON. These are the top-level keys; date-scoped tools additionally carry a _meta block with the server date and the data coverage envelope.
templates
Per template: the ordered section list and each section's settings.