thincms_snapshot
Capture a site resource's state before test writes to restore it byte-for-byte later. Guarantees recovery to exact pre-test state regardless of the write outcome.
Instructions
Capture the current state of a site resource so it can be restored byte-for-byte later. Use BEFORE any test write against a customer site — restore returns the resource to the exact pre-test state regardless of what the test write does (null, substitute, partial update, etc.). Snapshots live in MCP wrapper memory for 24 hours; they survive across tool calls within a session but are lost on host restart. Supports scope='settings', 'template', 'page' (requires resourceId), 'post' (requires resourceId), and 'review' (requires resourceId).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | What to snapshot. 'settings' captures editable site settings (excludes admin-only fields like name/domain that PUT can't restore from an editor key); 'template' captures stylesheet/pageFrame/customHeadHtml; 'page' / 'post' / 'review' capture editable fields of a single resource and require a resourceId. | |
| siteId | No | Override the active site for this snapshot (matches the per-call siteId pattern used by other tools). Must match a siteId from your THINCMS_SITES config. | |
| resourceId | No | Required for scope='page', 'post', or 'review'. The resource ID to snapshot. |