layouts_pull
Fetch every layout and component from the site, write per-layout .tpl files to a target directory, and generate a manifest.json mapping local paths to their metadata.
Instructions
Fetch every layout + component from /layouts and write per-layout .tpl files to target_dir/layouts/ and target_dir/components/. Builds manifest.json mapping each local path to {id, type, updated_at}. REFUSES to overwrite an existing tree that already contains .tpl files — pick a fresh location or clear it first. Empty/non-tpl content in target_dir is fine (e.g. README.md, .gitignore are preserved).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site name from voog_list_sites | |
| target_dir | Yes | Absolute path where layouts/, components/, manifest.json are written |