squarespace

An interactive reference for the Squarespace Content Save API, the interface used to change page content in Squarespace sites.

In plain words
What is it for?
Use it to look up how to add or update text, buttons, images, menus, sections, and other Squarespace page elements.
Why use it?
It helps you find the right API method and its required values when editing page content through code.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/timncox/squarespace-mcp/squarespace
Clone the repo
git clone --depth 1 https://github.com/timncox/squarespace-mcp

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,006 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02006
Opus 5 $0.00000 $0.01003
Sonnet 5 $0.00000 $0.00401
Haiku 4.5 $0.00000 $0.00201

Measured 2d ago against content hash 069ed3f296bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

squarespace scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/squarespace.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Squarespace API Reference

When the user runs /squarespace, provide an interactive reference for the Squarespace Content Save API based on their context or question.

Quick API Lookup

Common tasks and which ContentSaveClient method to use:

Task Method Key Parameters
Replace text (surgical) patchTextBlock() psId, colId, searchText, newText
Replace text (full block) updateTextBlock() psId, colId, searchText, newHtml
Add text block addTextBlock() psId, colId, sectionIndex, html, layout?, formatting?
Raw HTML replace updateTextBlockHtml() psId, colId, searchText, rawHtml
Update button updateButtonBlock() psId, colId, searchText, { newLabel?, url?, size?, style?, alignment?, variant? }
Add button addButtonBlock() psId, colId, sectionIndex, label, url, layout?, design?
Update image metadata updateImageBlock() psId, colId, searchText, { title?, altText?, assetUrl?, ... }
Add image addImageBlock() psId, colId, sectionIndex, assetUrl, options?
Batch add images addImageBlockBatch() psId, colId, sectionIndex, images[]
Update menu updateMenuBlock() psId, colId, searchText, newMenus
Remove block removeBlock() psId, colId, searchText
Move block moveBlock() psId, colId, searchText, direction, gridSteps?
Swap blocks swapBlocks() psId, colId, search1, search2
Move section moveSection() psId, colId, sectionIndex, direction
Edit section style editSectionStyle() psId, colId, sectionIndex, styles
Edit footer text patchFooterTextBlock() subdomain, searchText, newText
Save custom CSS saveCustomCSS() subdomain, css
Create page createPageViaApi() title, slug?, options?
Delete page deletePageViaApi() collectionId
Update page metadata updatePageMetadata() collectionId, { title?, seoTitle?, ... }
Verify section added verifySectionAdded() psId, expectedCount
Add quote block addQuoteBlock() psId, colId, sectionIndex, quoteText, attribution?
Add code block addCodeBlock() psId, colId, sectionIndex, code, language?
Add divider addDividerBlock() psId, colId, sectionIndex, layout?
Add video addVideoBlock() psId, colId, sectionIndex, videoUrl, options?
Get navigation getNavigation() (no params)
Reorder navigation updateNavigation() fieldName ('mainNav'/'_hidden'), items[]
Read settings getSettings() (no params)
Write settings updateSettings() fields (partial SiteSettings)
Read code injection getCodeInjection() (no params)
Write code injection saveCodeInjection() header?, footer?
Read advanced settings getAdvancedSettings() (no params)
Write advanced settings saveAdvancedSettings() data (form-encoded)
Read fonts getWebsiteFonts() (no params)
Write fonts updateWebsiteFonts() data (full WebsiteFontsData)
Update single font updateFont() fontName, updates (Partial)
Read colors getWebsiteColors() (no params)
Write colors updateWebsiteColors() data (full WebsiteColorsData)
Update palette color updatePaletteColor() colorId, hsl (HSLValues)
Read tweaks getTemplateTweakSettings() (no params)
Write tweaks setTemplateTweakSettings() updates (Record<string, string>)
Create blog post createBlogPost() collectionId, title, options?
Update blog post updateBlogPost() collectionId, itemId, updates
Find blog post findBlogPostByTitle() collectionId, searchTitle
Template section (fast) copyTemplateSectionFromCatalog() subdomain, category, index (~300ms)

Read the full file on GitHub · 135 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 135 lines · 0 tokens per session scan A 069ed3f296bc

Subscribe to this mod's changes

squarespace is a command published in the GitHub repository timncox/squarespace-mcp (2 stars, last pushed 25d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,006 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.