list_theme_files
List all files in a theme: templates, assets, sections, snippets, config, and locales. Supports pagination with cursor-based navigation.
Instructions
List all files in a theme (templates, assets, sections, snippets, config, locales). Requires read_themes access scope.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"theme_id": "<theme_id>"
},
"name": "list_theme_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme_id | Yes | The GID of the theme (e.g. 'gid://shopify/OnlineStoreTheme/123'). | |
| limit | No | Number of files to return (1–250). Default: 50. | |
| after | No | Cursor for forward pagination. |