publish
v1.25.0SpiderIQ Publish: content platform MCP (pages, posts, templates, components, domains, media)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
request_access
Request access to SpiderIQ API. This sends an approval email to the admin. After calling this, use check_access_status to poll for approval. Once approved, the token is automatically saved for subsequent API calls.
| Parameter | Type | Description |
|---|---|---|
email * | string | Admin email address (the person who will approve access) |
api_url | string | API URL (default: https://spideriq.ai) |
project | string | Project name (shown in approval email) |
scopes | array | Requested permission scopes (default: jobs:submit, jobs:read) |
check_access_status
Check the status of a PAT access request. Returns 'pending', 'active', 'denied', 'expired', or 'revoked' (matches the backend PATRequestStatus enum). Once status==='active', the token is saved to ~/.spideriq/credentials.json automatically. Multi-brand approvals save one entry per workspace under client_id, with the first aliased as 'default' so existing tools (upload_local_file, etc.) keep working without --workspace.
| Parameter | Type | Description |
|---|---|---|
poll_token * | string | Poll token from request_access |
request_id * | string | Request ID from request_access |
api_url | string | API URL (default: https://spideriq.ai) |
get_auth_status
Check if you are authenticated and get current user info.
| Parameter | Type | Description |
|---|---|---|
workspace | string | Workspace name (default: default) |
logout
Remove stored authentication credentials.
| Parameter | Type | Description |
|---|---|---|
workspace | string | Workspace name (default: default) |
list_workspaces
List all configured workspaces and their authentication status.
health_check
Check if the SpiderIQ API is healthy and responsive.
| Parameter | Type | Description |
|---|---|---|
api_url | string | API URL (default: https://spideriq.ai) |
workspace | string | Workspace name (default: default) |
get_queue_stats
Get statistics about job queues (pending jobs, consumers, etc.).
| Parameter | Type | Description |
|---|---|---|
format | string | Response format (default: json) |
workspace | string | Workspace name (default: default) |
get_api_info
Get information about the SpiderIQ API and your connection.
| Parameter | Type | Description |
|---|---|---|
workspace | string | Workspace name (default: default) |
content_list_pages
List your brand's content pages (including drafts).
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
status | string | Filter by status |
workspace | string |
content_create_page
Create a new content page with blocks. Phase 11+12 Lock 4 gate is opt-in via dry_run/confirm_token. 🚨 BLOCK FIELD NAMES MATTER. The default theme's snippets read SPECIFIC `data.*` keys per block-type. Unrecognized keys are stored verbatim but render as empty markup (silent-blank-section trap). For the canonical per-block-type field list, call `template_inspect_block_fields(block_type)` OR read the `blocks` param schema below. Page auditor warns at read-time via `render.unused_field_in_default_theme` (rule shipped 2026-05-22). Most-confused mappings: hero → data.{headline, sub…
| Parameter | Type | Description |
|---|---|---|
title * | string | Page title |
blocks | array | Page content blocks (JSON array). Each block shape: {id: '<uuid>', type: '<block_type>', data: {...}} Block types + the `data.*` fields the DEFAULT theme reads: • hero : headline, su… |
collection_type | string | Phase MA-2 PR-D: required when `template` is 'dynamic_list' or 'dynamic_item'; MUST be null/absent for any other template. Allowed values: 'posts', 'docs', 'directory_listings'. Backend `_validate_col… |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating and receive a confirm_token. When omitted, the change is applied immediately (legacy behaviour preserved). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
seo_description | string | SEO meta description |
seo_title | string | SEO title override |
slug | string | URL slug (auto-generated from title if omitted). Flat slugs only — `/` is rejected (pattern ^[a-z0-9][a-z0-9-]*$). Nested URLs not supported for general pages; docs use parent_id chains. |
template | string | Page template — selects which themes/default/templates/<template>.liquid the renderer uses. Free string (backend default 'default'). Common values bundled with the default theme: 'default' (standard… |
workspace | string |
content_get_page
Get a content page by ID (includes blocks, SEO, status). IMPORTANT — `page_id` MUST be a UUID, not a slug. Passing a slug returns 404 (not 500 — task `3daae81c` fixed the previous unhandled-ValueError crash). To look up by slug, call `content_list_pages` and filter the response client-side (`pages.filter(p => p.slug === 'my-slug')`), then pass the matching `page.id` here. P5: pass `audit_level` to surface a `_page_audit` block — "warnings" (default) returns errors + warnings from the PageAuditor walk so the agent learns about scroll-sequence empty frames, missing primary domains, laten…
| Parameter | Type | Description |
|---|---|---|
page_id * | string | Page UUID (NOT a slug — see tool description for the slug → UUID lookup pattern via content_list_pages). |
audit_level | string | P5: include a `_page_audit` block on the response. 'off' skips the auditor entirely (cheapest). 'errors' / 'warnings' / 'all' filter by severity. Default 'warnings'. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_export_page
Export a page as a self-contained envelope: page row + every component referenced by page.blocks (full body inlined — html_template, js, css, props_schema, dependencies, agent_meta, kind, layouts) + site settings + domains + a PageAuditor walk (10 v1 rules: scroll-sequence empty frames, missing primary domain, page SEO holes, latent Tier 3 components, etc.). Use this instead of content_get_page when you need the FULL picture before editing — e.g. to understand what `vp-hero` actually is, or to surface broken sections before redeploying.
| Parameter | Type | Description |
|---|---|---|
page_id * | string | Page ID |
format | string | json (default) — flat JSON envelope. md — human-readable Markdown. archive — ZIP byte stream matching the VSCode extension's local registry layout (page.json + components/<slug>@<version>.json +… |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_update_page
Update a content page (title, blocks, SEO, template). Phase 11+12 Lock 4 gate is opt-in via dry_run/confirm_token.
| Parameter | Type | Description |
|---|---|---|
page_id * | string | Page ID |
blocks | array | Updated content blocks |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating and receive a confirm_token. When omitted, the change is applied immediately (legacy behaviour preserved). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
seo_description | string | |
seo_title | string | |
slug | string | |
template | string | Page template/layout. Known values: 'default' (templates/page.liquid), 'landing', 'blank', 'dynamic_landing', 'dynamic_list', 'dynamic_item', '404'. dynamic_list/dynamic_item also require collection_t… |
title | string | |
workspace | string |
content_delete_page
Archive/delete a content page. Phase 11+12: defaults to dry_run=true — review the preview and call again with confirm_token to actually delete.
| Parameter | Type | Description |
|---|---|---|
page_id * | string | |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating. Defaults to true — call again with confirm_token to actually mutate. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_publish_page
Publish a draft page (creates a version snapshot). Phase 11+12: defaults to dry_run=true — review the preview and call again with confirm_token to actually publish.
| Parameter | Type | Description |
|---|---|---|
page_id * | string | |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating. Defaults to true — call again with confirm_token to actually mutate. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_unpublish_page
Revert a published page to draft. Phase 11+12: defaults to dry_run=true — review the preview and call again with confirm_token to actually unpublish.
| Parameter | Type | Description |
|---|---|---|
page_id * | string | |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating. Defaults to true — call again with confirm_token to actually mutate. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_lock_page
Lock a content page against further edits. Use when handing the page off for client review or scheduled launch. Idempotent — re-locking refreshes the reason. Other agents and dashboard users will receive 423 Locked on every mutation until you (or a super_admin) call content_unlock_page.
| Parameter | Type | Description |
|---|---|---|
page_id * | string | Page ID (UUID). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
reason | string | Why the page is being locked. Surfaced in 423 Locked responses so the next agent knows whether to back off or override. |
workspace | string |
content_unlock_page
Unlock a content page. Default: only the actor who originally locked it can unlock. Pass force=true (super_admin or brand_admin only) to override regardless of who holds the lock. Returns 403 with `not_lock_holder` if the caller is not the lock-holder and force is not set.
| Parameter | Type | Description |
|---|---|---|
page_id * | string | Page ID (UUID). |
force | boolean | Override the lock-holder check (super_admin / brand_admin only). Use when the original lock-holder is unavailable. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_list_page_versions
List version snapshots for a page (newest first). Each version is created on publish + on restore — use this as the canonical "history" before content_restore_page_version. Returns metadata only (block_count, blocks_size, change_summary, created_at, changed_by); the heavy `blocks` payload is fetched lazily via content_get_page_version.
| Parameter | Type | Description |
|---|---|---|
page_id * | string | Page ID (UUID). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_get_page_version
Fetch a single page version snapshot in full (includes the historical `blocks` body). Use when you need to diff a candidate restore against the current page before calling content_restore_page_version.
| Parameter | Type | Description |
|---|---|---|
page_id * | string | Page ID (UUID). |
version_number * | number | 1-indexed version number from content_list_page_versions. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_restore_page_version
Restore a page to a historical version snapshot. Phase 11+12 gated: defaults to dry_run=true — review the preview (which lists snapshot_block_count vs current_block_count + snapshot_created_at) and call again with confirm_token to actually restore. The restored page becomes draft; a new version row is appended recording the restore. Returns 423 Locked when the page is locked — pass force=true (super_admin / brand_admin only) to override.
| Parameter | Type | Description |
|---|---|---|
page_id * | string | Page ID (UUID). |
version_number * | number | 1-indexed version to restore. |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating. Defaults to true — call again with confirm_token to actually mutate. |
force | boolean | Bypass page lock (super_admin / brand_admin only). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_list_posts
List your brand's blog posts.
| Parameter | Type | Description |
|---|---|---|
limit | number | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
status | string | Filter by status |
tag | string | Filter by tag |
workspace | string |
content_create_post
Create a blog post (Tiptap JSON body, metadata, tags, author, categories, cover image, featured flag, SEO).
| Parameter | Type | Description |
|---|---|---|
title * | string | Post title |
author_id | string | Author UUID |
author_name | string | Free-text author name (used when no author_id) |
body | object | Post body (Tiptap JSON document) |
category_ids | array | Category UUIDs to assign — list, not single. Use [] to clear. |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
cover_image_url | string | Cover image URL. Field name MUST end with `_url` to persist. |
dry_run | boolean | Preview the change without mutating and receive a confirm_token. When omitted, the change is applied immediately (legacy behaviour preserved). |
excerpt | string | Short excerpt / summary |
featured_image_alt | string | Alt text for the cover image |
is_featured | boolean | Mark as featured post (field name is `is_featured`, not `featured`) |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
related_post_ids | array | Related post UUIDs (preserves order) |
seo_description | string | SEO meta description |
seo_title | string | SEO <title>; falls back to `title` if omitted |
slug | string | URL slug — kebab-case, no leading slash |
tag_ids | array | Tag entity UUIDs (new system; preferred over `tags`) |
tags | array | Post tags as strings (legacy text-tag system) |
tldr_summary | string | TL;DR (2–3 sentences) shown above body |
vayapin_pins | array | VayaPin pin ids that fit this article (e.g. ['BB:TAPAS','BB:CHAMPERS']) — auto-renders a card strip at the post bottom. Resolve valid ids first via GET /content/vayapin/cards; unknown/unlisted pins… |
workspace | string |
content_publish_post
Publish a blog post.
| Parameter | Type | Description |
|---|---|---|
post_id * | string | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_docs_tree
Get your brand's documentation tree structure.
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_create_doc
Create a documentation page.
| Parameter | Type | Description |
|---|---|---|
title * | string | Doc title |
body | object | Doc body (Tiptap JSON) |
parent_id | string | Parent doc ID (for nesting) |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
slug | string | URL slug |
workspace | string |
content_list_docs
List your brand's docs as a FLAT list (metadata only — no body). Complements content_docs_tree (which returns the hierarchy). Use this to discover a doc's UUID by title/status before fetching or mutating it via content_get_doc. Each item carries id, slug, full_path, title, status, parent_id, is_section, sort_order, seo_*, timestamps.
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
status | string | Filter by status. |
workspace | string |
content_get_doc
Get a documentation page by ID (includes Tiptap body, SEO, status, full_path, preview_url). IMPORTANT — `doc_id` MUST be a UUID, not a slug or full_path. Passing a non-UUID returns 404 (not 500). To look up by title/path, call content_list_docs (flat) or content_docs_tree (hierarchy) and filter client-side, then pass the matching `id` here.
| Parameter | Type | Description |
|---|---|---|
doc_id * | string | Doc UUID (NOT a slug/full_path — see tool description for the lookup pattern). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_update_doc
Update a documentation page (title, body, SEO, hierarchy). Slug is immutable — to re-path a doc, change its `parent_id` (full_path is recomputed for the doc + its whole subtree). Moving a doc under one of its own descendants is rejected (cycle → 400). Phase 11+12 gate is opt-in via dry_run/confirm_token (omit both ⇒ immediate update).
| Parameter | Type | Description |
|---|---|---|
doc_id * | string | Doc UUID. |
body | object | Doc body (Tiptap JSON document). body_text (full-text search) is kept in sync automatically. |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating and receive a confirm_token. When omitted, the change is applied immediately (legacy behaviour preserved). |
is_section | boolean | Whether this doc is a section header (groups children, no own page). |
parent_id | string | Move the doc under a new parent (rebuilds full_path for the doc + descendants). Pass null/omit to leave unchanged. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
seo_description | string | |
seo_title | string | |
sort_order | number | Position among siblings (ascending). |
title | string | |
workspace | string |
content_publish_doc
Publish a draft doc (status → published). Phase 11+12: defaults to dry_run=true — review the preview and call again with confirm_token to actually publish.
| Parameter | Type | Description |
|---|---|---|
doc_id * | string | |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating. Defaults to true — call again with confirm_token to actually mutate. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_unpublish_doc
Revert a published doc to draft. Phase 11+12: defaults to dry_run=true — review the preview and call again with confirm_token to actually unpublish.
| Parameter | Type | Description |
|---|---|---|
doc_id * | string | |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating. Defaults to true — call again with confirm_token to actually mutate. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
changelog_list
List your brand's changelog entries (version, title, status, published_at). This IS the built-in CHANGELOG content type — a /changelog route, RSS+Atom feeds, and dashboard editor already exist; you do NOT need to build a changelog. Note the tool naming: changelog_list / changelog_create / changelog_publish use a `changelog_` prefix (NOT `content_*_changelog_entry`). An empty list means zero entries created yet, not a missing feature. Use this to discover an entry's UUID before publishing it via changelog_publish. Optionally filter by status (draft/published/archived).
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
status | string | Filter by status. |
workspace | string |
changelog_create
Create a DRAFT changelog entry. `version` must be unique for the brand (e.g. "v2.10.0"); a duplicate returns 409. `body` is a Tiptap JSON document. Publish it afterwards with changelog_publish.
| Parameter | Type | Description |
|---|---|---|
body * | object | Entry body (Tiptap JSON document). |
title * | string | Release title. |
version * | string | Version label, unique per brand (e.g. "v2.10.0"). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
changelog_publish
Publish a changelog entry (status → published). It appears on the public /changelog timeline + RSS/Atom feeds and, on the first publish, fires the changelog.published notification to subscribers. Reversible (no dry_run gate). Pass the entry UUID from changelog_list.
| Parameter | Type | Description |
|---|---|---|
changelog_id * | string | Changelog entry UUID (from changelog_list). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_delete_doc
Archive/delete a documentation page (soft delete → archived). Children are left intact (a deleted section still anchors its descendants by parent_id). Phase 11+12: defaults to dry_run=true — review the preview and call again with confirm_token to actually delete.
| Parameter | Type | Description |
|---|---|---|
doc_id * | string | |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating. Defaults to true — call again with confirm_token to actually mutate. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_export_doc
Export a doc as a self-contained envelope: doc row (Tiptap body, SEO, full_path) + site settings + domains. Docs are prose-first, so there are no component bodies to inline (unlike content_export_page). format='json' (default) returns the JSON envelope; format='md' returns human-readable Markdown rendered from the body.
| Parameter | Type | Description |
|---|---|---|
doc_id * | string | |
format | string | json (default) — JSON envelope; md — Markdown rendered from the Tiptap body. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_import_markdown
Import a doc OR page from a Markdown body — the universal Markdown→content bridge. target='doc' parses Markdown into a Tiptap doc body; target='page' parses prose runs into rich_text blocks. `:::component{slug=… version=… props={…}}` directives become embedded components (the MDX unlock). Create a NEW item (omit the id, pass slug + title) or REPLACE an existing one's body/blocks (pass doc_id for a doc / page_id for a page). The Phase 11+12 gate is opt-in via dry_run/confirm_token and applies on the REPLACE path (omit both ⇒ immediate). Round-trips with content_export_markdown. Mark…
| Parameter | Type | Description |
|---|---|---|
markdown * | string | Markdown source (≤256 KB). `:::component{...}` directives are preserved. |
target * | string | What to create/update from the Markdown. |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
doc_id | string | Existing doc to replace (target='doc'); omit to create. |
dry_run | boolean | Preview the change without mutating and receive a confirm_token. When omitted, the change is applied immediately (legacy behaviour preserved). |
page_id | string | Existing page to replace blocks on (target='page'); omit to create. |
parent_id | string | Parent doc/page id (nesting on create; doc re-path on update). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
slug | string | Flat slug — required when creating, ignored when updating (slug is immutable). |
template | string | Page template (target='page' create only; default 'default'). |
title | string | Required when creating; updates the title when set on an existing item. |
workspace | string |
content_import_openapi
Generate a full API-reference docs section from ANY OpenAPI 3.x or Swagger 2.0 spec (the flagship 'docs as a product' feature — Stripe/ReadMe/Mintlify-tier). Provide EXACTLY ONE of source_url (fetched server-side, SSRF-safe) or spec_content (pasted JSON/YAML). Creates one doc page per tag under the `section` slug (default 'api-reference'), each endpoint with method/path/params/schemas and auto multi-language code samples (curl/Python/JS/Go) in a `:::codegroup` block. Re-import is IDEMPOTENT — the importer owns the section subtree (upserts tag pages, archives removed ones). Use dry_run=true…
| Parameter | Type | Description |
|---|---|---|
dry_run | boolean | Preview the planned section + pages without writing anything. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
publish | boolean | Publish the generated docs immediately (default false → created as drafts for review). |
section | string | Slug of the docs section to generate under (default 'api-reference'). Importer-owned subtree. |
source_url | string | HTTPS/HTTP URL of the OpenAPI/Swagger spec (fetched SSRF-safely). Provide this OR spec_content. |
spec_content | string | Raw spec text (JSON or YAML) — alternative to source_url. |
spec_format | string | Spec body format (default 'auto'). |
workspace | string |
content_export_markdown
Export a doc OR page as pure, round-trippable Markdown. target='doc' renders the Tiptap body; target='page' renders the blocks with each component block serialized back to a `:::component{...}` directive. The text round-trips through content_import_markdown. (For the richer JSON export envelope — components inlined, settings, domains, audit — use content_export_doc / content_export_page instead.)
| Parameter | Type | Description |
|---|---|---|
id * | string | Doc UUID (target=doc) or Page UUID (target=page). |
target * | string | Which resource to export. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_get_settings
Get your brand's content settings (site name, SEO defaults, analytics, colors).
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_update_settings
Update content settings (site name, SEO, analytics code, primary color, custom head scripts, etc.). IMPORTANT: wrap the fields you want to change inside a top-level `settings` object — pass `{ settings: { site_name: 'X', primary_color: '#abc' } }`, NOT `{ site_name: 'X', primary_color: '#abc' }` and NOT `{ changes: { ... } }` (other tools like `form_update` use `changes:`; this tool uses `settings:`). The wrapper is required; calls without it return 422 'Field required'. Phase 11+12: defaults to dry_run=true — review the preview and call again with confirm_token to apply.
| Parameter | Type | Description |
|---|---|---|
settings * | object | REQUIRED top-level wrapper. The dict of settings fields to update (e.g. { site_name: 'X', primary_color: '#abc', custom_head_scripts: '<script>…</script>' }). Note: tool wrapper, NOT `changes` (whic… |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating. Defaults to true — call again with confirm_token to actually mutate. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_list_domains
List custom domains configured for your brand's content site.
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_add_domain
Add a custom domain for your content site. Requires DNS verification after adding.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Domain name (e.g., "blog.mycompany.com") |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_verify_domain
Verify DNS for a custom domain (checks CNAME/A record).
| Parameter | Type | Description |
|---|---|---|
domain * | string | Domain to verify |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_set_primary_domain
Set a verified domain as the primary domain for your content site.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Domain to set as primary |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_delete_domain
Remove a custom domain from your content site.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Domain to remove |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_get_post
Get a blog post by ID (includes body, tags, author, status).
| Parameter | Type | Description |
|---|---|---|
post_id * | string | Post ID |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_update_post
Update a blog post (title, body, excerpt, tags, cover image, author, categories, featured, SEO).
| Parameter | Type | Description |
|---|---|---|
post_id * | string | Post ID |
author_id | string | Author UUID |
author_name | string | |
body | object | Post body (Tiptap JSON document) |
category_ids | array | Category UUIDs to assign — list, not single. Use [] to clear. |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
cover_image_url | string | Cover image URL. Field name MUST end with `_url` to persist. |
dry_run | boolean | Preview the change without mutating and receive a confirm_token. When omitted, the change is applied immediately (legacy behaviour preserved). |
excerpt | string | |
featured_image_alt | string | Alt text for the cover image |
is_featured | boolean | Mark as featured post (field name is `is_featured`, not `featured`) |
og_image_url | string | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
related_post_ids | array | |
seo_description | string | |
seo_title | string | |
slug | string | |
tag_ids | array | Tag entity UUIDs (new system) |
tags | array | Legacy text tags |
title | string | |
tldr_summary | string | |
vayapin_pins | array | VayaPin pin ids that fit this article (e.g. ['BB:TAPAS','BB:CHAMPERS']) — auto-renders a card strip at the post bottom. Omit to leave unchanged; pass [] to clear. Resolve ids via GET /content/vayapi… |
workspace | string |
content_delete_post
Delete a blog post. Phase 11+12 Lock 4 gate is opt-in via dry_run/confirm_token (defaults preserve immediate-delete for backward compat).
| Parameter | Type | Description |
|---|---|---|
post_id * | string | Post ID |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating and receive a confirm_token. When omitted, the change is applied immediately (legacy behaviour preserved). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_unpublish_post
Revert a published post to draft.
| Parameter | Type | Description |
|---|---|---|
post_id * | string | Post ID |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_update_post_status
Update post status (draft, published, archived).
| Parameter | Type | Description |
|---|---|---|
post_id * | string | Post ID |
status * | string | New status |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_search_posts
Search published posts by keyword (public, no auth needed).
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query |
limit | number | Max results |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_featured_posts
Get featured blog posts (public, no auth needed).
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results (default 5) |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_list_authors
List your brand's blog authors.
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_create_author
Create a blog author profile.
| Parameter | Type | Description |
|---|---|---|
full_name * | string | Author full name |
agent_type | string | Human or AI author |
avatar_url | string | Avatar image URL |
bio | string | Author biography |
city | string | |
country | string | |
email | string | Author email |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
role | string | Author role |
slug | string | URL slug |
workspace | string |
content_get_author
Get an author profile by ID.
| Parameter | Type | Description |
|---|---|---|
author_id * | string | Author ID |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_update_author
Update an author profile.
| Parameter | Type | Description |
|---|---|---|
author_id * | string | Author ID |
agent_type | string | |
avatar_url | string | |
bio | string | |
city | string | |
country | string | |
email | string | |
full_name | string | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
role | string | |
slug | string | |
workspace | string |
content_delete_author
Soft-delete an author profile.
| Parameter | Type | Description |
|---|---|---|
author_id * | string | Author ID |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_list_tags
List your brand's blog tags (includes post count).
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_create_tag
Create a blog tag.
| Parameter | Type | Description |
|---|---|---|
name * | string | Tag name |
description | string | Tag description |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
slug | string | URL slug |
workspace | string |
content_update_tag
Update a blog tag.
| Parameter | Type | Description |
|---|---|---|
tag_id * | string | Tag ID |
description | string | |
name | string | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
slug | string | |
workspace | string |
content_delete_tag
Delete a blog tag.
| Parameter | Type | Description |
|---|---|---|
tag_id * | string | Tag ID |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_list_categories
List your brand's blog categories (supports hierarchy).
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_create_category
Create a blog category (supports parent_id for hierarchy).
| Parameter | Type | Description |
|---|---|---|
name * | string | Category name |
description | string | |
parent_id | string | Parent category ID (for nesting) |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
slug | string | URL slug |
sort_order | number | Display order |
workspace | string |
content_update_category
Update a blog category.
| Parameter | Type | Description |
|---|---|---|
category_id * | string | Category ID |
description | string | |
name | string | |
parent_id | string | Parent category ID |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
slug | string | |
sort_order | number | |
workspace | string |
content_delete_category
Delete a blog category.
| Parameter | Type | Description |
|---|---|---|
category_id * | string | Category ID |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_list_components
List UI components (reusable blocks with Shadow DOM isolation).
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category |
include_global | boolean | Include global (system) components |
limit | number | Max results |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
status | string | Filter by status |
workspace | string |
content_create_component
Create a reusable UI component (auto-wrapped in Shadow DOM for CSS isolation). IMPORTANT — set `kind` at create time. Components without a `kind` are flagged as latent Tier 3 by the page auditor (rule `creation.kind_null_with_dependencies`) and excluded from marketplace_search. If you're shipping `dependencies` (gsap, chartjs, etc.) you almost always want `kind='interactive'` + `js_runtime='vanilla'`. See the `kind` field for the full taxonomy and the kind→js_runtime/block_type/sources invariant matrix. P5: pass `authoring_hints` to surface preferred_path / common_mistakes / must_set / m…
| Parameter | Type | Description |
|---|---|---|
html_template * | string | Liquid HTML template for the component |
name * | string | Display name |
slug * | string | Component slug (URL-safe identifier) |
agent_meta | object | Phase A agent-discovery metadata. Validated by `ComponentAgentMeta` (Pydantic `extra='forbid'`). Shape: { interaction_pattern?: enum, trigger_kind?: enum, intent?: string, audience_tags?: string[] }.… |
authoring_hints | object | P5 — author-written rules surfaced via the _rules envelope when this component is inserted. Shape: {preferred_path?: string, common_mistakes?: string[], must_set?: string[], must_not_set?: string[]}… |
block_type | string | Generic block shape — REQUIRED when kind='dynamic', MUST be NULL otherwise (DB CHECK constraint chk_components_kind via migration 174). Drives the editor's block-shape picker. |
brand_fit_tags | array | Universal axis — multi-value industry vertical fit. Drives marketplace cross-filter. |
category | string | Component category |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
css | string | Component CSS (isolated via Shadow DOM — no leaks) |
default_props | object | Default prop values |
dependencies | array | CDN library keys from allowlist (Tier 3). E.g. ["gsap", "gsap/ScrollTrigger"]. Use content_list_cdn_allowlist to see available keys. When non-empty, set `kind` to `interactive` / `dynamic` / `extensio… |
description | string | Component description |
dry_run | boolean | Preview the change without mutating and receive a confirm_token. When omitted, the change is applied immediately (legacy behaviour preserved). |
framework | string | Framework for Tier 4 app components |
is_global | boolean | Make available to all clients |
js | string | Vanilla JS scoped to shadow root (Tier 2). Receives root (shadowRoot) and props arguments. |
js_runtime | string | JavaScript runtime pattern — REQUIRED for kind ∈ {interactive, dynamic, extension}, MUST be NULL when kind='static'. vanilla — inline <script> blocks; no module bundling. web-componen… |
kind | string | Behavioural class (Phase A 4-class taxonomy). DEFAULTS TO NULL — components without a kind are flagged 'latent Tier 3' by the page auditor and excluded from marketplace_search. static — p… |
mood | array | Universal axis — multi-value mood tags for marketplace discovery (Phase A agent-discovery). |
palette | array | Universal axis — open vocabulary palette tokens (e.g. "warm-neutrals", "monochrome", "neon-cyan-magenta"). Max 12. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
props_schema | object | JSON Schema defining accepted props |
scene_type | string | Universal axis — single-value scene/intent. Component-scoped values listed; cross-asset values live on bg-videos / site-templates. |
source_code | string | Framework source code (JSX/Vue SFC/Svelte) |
sources | array | Live Data — the data source(s) this component binds to. REQUIRED (non-empty) when kind='dynamic' (backend 422 via chk_components_kind). At render the server fetches each source and exposes the resul… |
tags | array | Tags for discovery |
thumbnail_url | string | Preview thumbnail URL |
version | string | Semver version (default 1.0.0) |
workspace | string |
content_get_component
Get a UI component by ID (includes template, CSS, props schema).
| Parameter | Type | Description |
|---|---|---|
component_id * | string | Component ID |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_get_component_by_slug
Get a UI component by slug (optionally a specific version).
| Parameter | Type | Description |
|---|---|---|
slug * | string | Component slug |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
version | string | Specific version (default: latest published) |
workspace | string |
content_update_component
Update a UI component (template, CSS, JS, props schema, metadata). Use this to upgrade an existing component to a Phase A 4-class taxonomy entry — pass `kind` + (when kind != 'static') `js_runtime`. PATCH semantics: cross-field invariants (kind+block_type pairing for kind='dynamic', extension_spec required for kind='extension') are validated by the DB CHECK constraints in migration 174 — backend returns 400 with the constraint name if the patched row would violate them. Use the universal axes (mood / palette / brand_fit_tags / scene_type) to backfill agent-discovery metadata on rows autho…
| Parameter | Type | Description |
|---|---|---|
component_id * | string | Component ID |
agent_meta | object | Phase A agent-discovery metadata. Validated by `ComponentAgentMeta` (Pydantic `extra='forbid'`). Shape: { interaction_pattern?: enum, trigger_kind?: enum, intent?: string, audience_tags?: string[] }.… |
authoring_hints | object | P5 — replace component-author-written rules surfaced via the _rules envelope. Pass {} to clear. Shape: {preferred_path?: string, common_mistakes?: string[], must_set?: string[], must_not_set?: strin… |
block_type | string | Generic block shape — REQUIRED when kind='dynamic', MUST be NULL otherwise (DB CHECK constraint chk_components_kind via migration 174). Drives the editor's block-shape picker. |
brand_fit_tags | array | Universal axis — multi-value industry vertical fit. Drives marketplace cross-filter. |
category | string | |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
css | string | Component CSS |
default_props | object | |
dependencies | array | CDN library keys (Tier 3). Use content_list_cdn_allowlist for available keys. When adding deps to a component without a `kind`, also patch `kind`/`js_runtime` in the same PATCH to avoid the latent-Tie… |
description | string | |
dry_run | boolean | Preview the change without mutating and receive a confirm_token. When omitted, the change is applied immediately (legacy behaviour preserved). |
framework | string | Framework for Tier 4 app components |
html_template | string | Liquid HTML template |
js | string | Vanilla JS scoped to shadow root (Tier 2) |
js_runtime | string | JavaScript runtime pattern — REQUIRED for kind ∈ {interactive, dynamic, extension}, MUST be NULL when kind='static'. vanilla — inline <script> blocks; no module bundling. web-componen… |
kind | string | Behavioural class (Phase A 4-class taxonomy). DEFAULTS TO NULL — components without a kind are flagged 'latent Tier 3' by the page auditor and excluded from marketplace_search. static — p… |
mood | array | Universal axis — multi-value mood tags for marketplace discovery (Phase A agent-discovery). |
name | string | |
palette | array | Universal axis — open vocabulary palette tokens (e.g. "warm-neutrals", "monochrome", "neon-cyan-magenta"). Max 12. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
props_schema | object | JSON Schema for props |
scene_type | string | Universal axis — single-value scene/intent. Component-scoped values listed; cross-asset values live on bg-videos / site-templates. |
source_code | string | Framework source code (JSX/Vue SFC/Svelte) |
sources | array | Live Data — the data source(s) this component binds to. REQUIRED (non-empty) when kind='dynamic' (backend 422 via chk_components_kind). At render the server fetches each source and exposes the resul… |
tags | array | |
thumbnail_url | string | |
workspace | string |
content_delete_component
Delete a UI component. Phase 11+12: defaults to dry_run=true — review the preview and call again with confirm_token to actually delete.
| Parameter | Type | Description |
|---|---|---|
component_id * | string | Component ID |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating. Defaults to true — call again with confirm_token to actually mutate. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_publish_component
Publish a draft component (makes it available for use in page blocks). Phase 11+12: defaults to dry_run=true — review the preview and call again with confirm_token.
| Parameter | Type | Description |
|---|---|---|
component_id * | string | Component ID |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating. Defaults to true — call again with confirm_token to actually mutate. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_archive_component
Archive a component (removes from active use, keeps for reference). Phase 11+12: defaults to dry_run=true — review the preview and call again with confirm_token.
| Parameter | Type | Description |
|---|---|---|
component_id * | string | Component ID |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating. Defaults to true — call again with confirm_token to actually mutate. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_list_component_versions
List all versions of a component by slug.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Component slug |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_list_cdn_allowlist
List available CDN libraries for component dependencies (Tier 3). Returns keys, names, URLs, categories. Use these keys in the dependencies array when creating/updating components.
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_get_build_status
Get the build status of a framework component (Tier 4). Returns build_status, build_error, bundle_url.
| Parameter | Type | Description |
|---|---|---|
component_id * | string | Component ID |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name |
content_rebuild_component
Trigger a rebuild of a framework component (Tier 4). Returns 202 — poll with content_get_build_status.
| Parameter | Type | Description |
|---|---|---|
component_id * | string | Component ID |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name |
content_upload_component_preview
Upload a preview thumbnail (PNG/JPG/GIF/WEBP/MP4) for a component. Reads the file from the local filesystem, sniffs the content-type from the extension, POSTs multipart to /content/components/{id}/upload-preview, and the server uploads to R2 + PATCHes preview_thumbnail_url on the row in one round-trip. Allowed extensions: png, jpg, jpeg, gif, webp, mp4. 5 MB cap (server-enforced; for larger animated MP4 use SpiderMedia upload then PATCH preview_thumbnail_url manually). CRO bug-fix bundle (2026-05-08, Antigravity report Bug 2): the API endpoint existed since Marketplace Admin Slice 1 (2026-04…
| Parameter | Type | Description |
|---|---|---|
component_id * | string | Component ID (UUID) to attach the preview to. |
local_path * | string | Absolute or cwd-relative path to the preview file on disk. |
ext | string | Override extension (default: extension from local_path, lowercased). One of: png, jpg, jpeg, gif, webp, mp4. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name (default: "default"). |
content_upload_bg_video
Upload a bg-video MP4 (or poster image) to R2 for the marketplace bg-video catalog. Reads the file from the local filesystem, POSTs multipart to /content/bg-videos/upload, server uploads to R2 at `bg-videos/<slug>.<ext>` and returns the public URL. Allowed extensions: mp4 (video), webp/png/jpg/jpeg/gif (poster). 50 MB cap (server-enforced). Unlike component uploads, this tool does NOT touch the catalog row — call `content_create_bg_video` or `content_update_bg_video` afterwards with the returned URL in `video_url` or `poster_url`. Both fields are strict-allowlisted to R2 hosts as of 2026-0…
| Parameter | Type | Description |
|---|---|---|
local_path * | string | Absolute or cwd-relative path to the file on disk. |
slug * | string | Bg-video slug — used as the R2 key stem (bg-videos/<slug>.<ext>). |
ext | string | Override extension (default: extension from local_path, lowercased). One of: mp4, webp, png, jpg, jpeg, gif. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name (default: "default"). |
content_upload_site_template_preview
Upload a preview image (PNG/JPG/GIF/WebP) for a site template. Reads the file from the local filesystem, POSTs multipart to /content/site-templates/{slug}/upload-preview, server uploads to R2 at `templates/<slug>.<ext>` and returns the public URL. Allowed extensions: png, jpg, jpeg, gif, webp. 5 MB cap. Unlike component uploads, this tool does NOT patch the catalog row — call `content_update_site_template` afterwards with the returned URL in `preview_thumbnail_url` (and optionally `preview_url`). Both fields are strict-allowlisted to R2 + curated preview hosts as of 2026-05-12. Returns: {…
| Parameter | Type | Description |
|---|---|---|
local_path * | string | Absolute or cwd-relative path to the preview file on disk. |
slug * | string | Site template slug — used as the R2 key stem (templates/<slug>.<ext>) AND the path segment. |
ext | string | Override extension (default: extension from local_path, lowercased). One of: png, jpg, jpeg, gif, webp. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name (default: "default"). |
content_visual_check
Open a URL in a real browser and report what an end-user actually sees. Returns screenshot + DOM info + console errors + failed requests + per-assertion results. USE: verify a content page or form is rendering correctly after a publish operation; catch silent-200-with-broken-content failures that monitoring doesn't see. NOT: don't use for crawling external sites; URL allowlist restricts to spideriq.ai subdomains + tenant verified custom domains. CRITICAL ASSERTION RULE (from learnings_visual_check_assert_on_shadow_hosts.md, codified 2026-05-18): when verifying a form is rendering correctly,…
| Parameter | Type | Description |
|---|---|---|
page_url * | string | Full URL to check. Must be on the allowlist (spideriq.ai subdomains or a tenant verified custom domain). |
expected_no_text | array | Strings that MUST NOT appear (e.g. "couldn't load this booking"). |
expected_text | array | Strings that MUST appear in body_text_preview. NOTE: opaque to cross-origin iframe contents — assert on dom.shadow_hosts for form/booking widgets instead. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
tenant_id | string | Optional. Expands the URL allowlist to that tenant's verified primary domain. |
timeout_ms | number | Total navigation + wait timeout, in ms. Default 30000, hard cap 60000. |
viewport | string | Viewport preset. desktop=1440x900, mobile=375x667. Defaults to desktop. |
wait_for_text | string | Optional — wait until this string appears in the DOM before snapshotting. |
template_get_help
SpiderPublishREADME — agent orchestration entry-point. Returns four sections in one response: • reference — canonical schema (content types, block types, Liquid filters/tags, template structure, data sources). The exact YAML/JSON/MD payload the legacy tool returned. Includes per-block-type field maps + agent-natural alias hints (2026-05-22 usability F-19) so an agent that writes `hero.title` instead of `hero.headline` catches the mistake before publishing. • si…
| Parameter | Type | Description |
|---|---|---|
format | string | Response format (default: yaml). Wraps reference + site_context + recipes + routing into one document. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
template_inspect_block_fields
Get the canonical `data.*` fields the default theme reads for a block type, plus the agent-natural alias map. Use this BEFORE inserting a non-component block (hero, cta_section, stats_bar, comparison_table, etc.) to avoid the silent-blank-section trap from the 2026-05-22 usability report (F-9). Returns: • fields — what the snippet actually reads • _aliases — common mistakes → canonical field name (e.g. {"title": "headline", "cta_text": "cta_primary (object: {label, url})"}) • _anti_patterns — shapes that 422…
| Parameter | Type | Description |
|---|---|---|
block_type | string | Specific block type to inspect (e.g. "hero", "cta_section"). Omit to list all. |
format | string | Response format (default: json). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_get_variables
**START HERE for personalized landing pages.** Returns the full merge-tag vocabulary ({{firstname}}, {{company_name}}, {{city}}, {{industry}}, {{logo}}, {{email}}, ~40 tokens total) for dynamic-landing templates — Mailchimp-style flat tags every LLM already knows. Includes plain-English descriptions, realistic example values from the Mario's Pizzeria demo fixture, and selection rules (e.g. how `{{ email }}` picks the best verified address). Works without auth. Fetch once at session start — you'll know every variable you can drop into a Liquid template.
| Parameter | Type | Description |
|---|---|---|
format | string | Response format (default: yaml — token-efficient) |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
template_list
List all custom Liquid templates for your site.
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
template_get
Get a Liquid template source code by path (e.g. "templates/blog.liquid"). Returns YOUR tenant's KV override if one exists, otherwise the bundled default-theme file. A 404 means neither exists for this tenant — it does NOT mean the feature is missing: the page can still render from the default theme even when this returns 404 (e.g. templates/changelog.liquid). Likewise, a large inline-CSS template here is your own prior customization, not what SpiderPublish ships.
| Parameter | Type | Description |
|---|---|---|
path * | string | Template path (e.g. layout/theme.liquid, snippets/hero-block.liquid) |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
template_upsert
Create or update a Liquid template. Provide the FULL Liquid template source code. The `path` param is the file path under the client's theme (e.g. 'templates/default.liquid', 'layout/theme.liquid', 'snippets/post-card.liquid'). It is a FILENAME, not a slug or shorthand — passing 'form' or 'page' as `path` will store garbage that no template-lookup path consults. Customizing form-page chrome at /f/<flow_id>: override 'templates/forms-standalone.liquid' (NOT 'templates/form.liquid', which is unused). Same for booking pages: 'templates/booking-standalone.liquid'. Both extend layout/theme.liquid…
| Parameter | Type | Description |
|---|---|---|
content * | string | Liquid template source code (full file body, not a diff). |
path * | string | Template file path under the theme (e.g. 'templates/default.liquid', 'templates/forms-standalone.liquid', 'layout/theme.liquid'). Required. Backend rejects literal 'undefined' / 'null' / empty / non-s… |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating and receive a confirm_token. When omitted, the change is applied immediately (legacy behaviour preserved). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
theme | string | Theme name (default: "default") |
workspace | string |
template_delete
Delete a custom template (reverts to the theme default for that path). Phase 11+12 Lock 4 gate is opt-in via dry_run/confirm_token (defaults preserve immediate-delete for backward compat).
| Parameter | Type | Description |
|---|---|---|
path * | string | Template path to delete |
confirm_token | string | Token from a prior dry_run call. Single-use, 7d TTL. |
dry_run | boolean | Preview the change without mutating and receive a confirm_token. When omitted, the change is applied immediately (legacy behaviour preserved). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
template_list_themes
List available pre-built themes.
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
template_apply_theme
Apply a pre-built theme to your site. Copies all theme templates to your template set. Phase 11+12: defaults to dry_run=true. Review the preview, then call again with confirm_token to actually apply.
| Parameter | Type | Description |
|---|---|---|
confirm_token | string | Token from a prior dry_run call. |
dry_run | boolean | Preview the change without mutating. Default true. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
theme | string | Theme name (default: "default") |
workspace | string |
template_get_config
Get template config: current theme, route overrides, settings, and connected data sources.
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
template_update_config
Update template config: theme, route overrides, settings, or data sources.
| Parameter | Type | Description |
|---|---|---|
data_sources | array | Connected SpiderIQ data sources |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
routes | object | Path → template overrides (e.g. {"/pricing": "templates/pricing.liquid"}) |
settings | object | Theme-level settings |
theme | string | Theme name |
workspace | string |
template_preview
Render a template with mock data and return the HTML output.
| Parameter | Type | Description |
|---|---|---|
template_path * | string | Template path to render |
data | object | Mock data to pass to the template |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_deploy_site_preview
Phase 11+12 Stage 2 — issue a preview URL + confirm_token without deploying. Returns `{ preview_url, confirm_token, expires_at, preview: {...}, snapshot_hash }`. Call `content_deploy_site_production` with the returned confirm_token to actually deploy.
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_deploy_site_production
Phase 11+12 Stage 2 — consume a confirm_token from a prior `content_deploy_site_preview` call and run the real deploy (Lock 4). 410 on expired, 409 on already-consumed, 403 on mismatch.
| Parameter | Type | Description |
|---|---|---|
confirm_token * | string | Token returned by content_deploy_site_preview |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_deploy_site
Deploy your site to Cloudflare edge. Uploads templates + config, site goes live in ~2-5 seconds. Phase 11+12: prefer `content_deploy_site_preview` + `content_deploy_site_production` for the safe two-step flow. This tool is kept for back-compat; set dry_run=true to preview, or pass confirm_token to consume a prior preview.
| Parameter | Type | Description |
|---|---|---|
confirm_token | string | Consume a prior preview token and deploy. |
dry_run | boolean | Issue a preview + confirm_token without deploying. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_deploy_status
Check the latest deploy status for your site.
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_deploy_readiness
Check if your site is ready to deploy. Returns a checklist of what is configured (settings, domain, templates, pages) and what is missing. Call this BEFORE content_deploy_site — deploy will reject if blocking items are not resolved.
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
import_from_url
Import file(s) from URL into your SpiderMedia bucket. Supports single URL or batch. Auto-proxies Instagram/Facebook/Twitter CDN URLs.
| Parameter | Type | Description |
|---|---|---|
folder | string | Target folder (e.g., "ads", "logos") |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
url | string | Single URL to import |
urls | array | Batch URLs to import [{url, filename?}] |
use_proxy | boolean | Force proxy for CDN URLs (default: auto-detect) |
workspace | string | Workspace name |
list_files
List files in your SpiderMedia bucket.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results (default: 20) |
offset | number | Offset for pagination |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
type | string | Filter by file type (image, video, document) |
workspace | string | Workspace name |
delete_file
Delete a file from your SpiderMedia bucket by storage key.
| Parameter | Type | Description |
|---|---|---|
key * | string | File storage key (from list_files response) |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name |
list_videos
List videos in your SpiderMedia bucket.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results (default: 20) |
offset | number | Offset for pagination |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name |
get_video_status
Get processing status for a video (encoding, ready, failed).
| Parameter | Type | Description |
|---|---|---|
video_id * | string | Video ID |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name |
get_media_stats
Get media storage statistics (file counts, storage used, by type).
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name |
video_to_scroll_sequence
Build a scroll-linked image-sequence hero from a video URL, end-to-end. One call replaces the 5-step recipe: upload video -> submit extract_frames -> poll -> build block -> update page. Extracts numbered WebP frames from the source video (ffmpeg, ~7x smaller than raw), uploads them to the client's SpiderMedia bucket with a deterministic pattern (frame_{0001..NNNN}.webp), then injects a 'sys-scroll-sequence' component block into the target page AS A DRAFT. **Never auto-publishes.** After this tool returns, call: 1. content_deploy_site_preview (review at preview-{hash}.sites.spideriq.ai)…
| Parameter | Type | Description |
|---|---|---|
page_slug * | string | Target page slug — MUST already exist. Use content_create_page first if not. |
video_url * | string | Source video URL (SpiderMedia, di-atomic, or public http/https) |
background_color | string | Hex color painted before frames load (default: #ffffff) |
canvas_height | number | Canvas render height, 240-1080 (default: 720) |
canvas_width | number | Canvas render width, 320-1920 (default: 1280) |
dry_run | boolean | If true, returns block JSON without touching the page (default: false) |
duration_seconds | number | Clip duration in seconds (1-120). Required if strategy=duration_fps |
fps | number | Sample FPS (1-60). Required if strategy=fps or duration_fps |
output_format | string | Frame format (default: webp — half the bytes of jpeg at same quality) |
output_quality | number | Encoder quality 50-95 (default: 80) |
output_width | number | Output frame width 320-1920 (default: 1280) |
poll_interval_seconds | number | Poll interval in seconds (0.5-10, default: 2) |
poll_timeout_seconds | number | Max seconds to wait for extract_frames (30-900, default: 300) |
position | Where to insert: "append" (default), "prepend", {index: N}, {before: slug}, or {after: slug} | |
preload_strategy | string | progressive (default) loads ±15 frame window; all pre-loads everything |
priority | number | Job priority 0-10 (default: 5) |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
scroll_distance_vh | number | Viewport heights to scroll through full sequence, 200-800 (default: 400) |
strategy | string | Frame-count strategy (default: target_frames) |
target_frames | number | Exact frame count (10-600). Required if strategy=target_frames. Default: 120 |
workspace | string | Workspace name (default: "default") |
content_override_section
Override a site section (header, footer, hero, sidebar, etc.) — or the blog listing / single-post templates — for this client. Param-name compatibility (the older templates.ts duplicate of this tool was merged here 2026-05-20 — both naming conventions work): - Canonical: { section_slug, liquid_source } - Legacy: { section, liquid } Pass either pair. If both are supplied, the canonical names win. When to use this instead of template_upsert: - You want to customize the header, footer, blog listing, or another named section just for this client - You have Liquid source and know the s…
| Parameter | Type | Description |
|---|---|---|
liquid | string | Legacy alias for liquid_source (templates.ts duplicate compat). Pass either one. |
liquid_source | string | Canonical: full Liquid template source for the section. Will overwrite any existing override for this slug. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
section | string | Legacy alias for section_slug (templates.ts duplicate compat). Pass either one. |
section_slug | string | Canonical section identifier — common values: "header", "footer", "hero". Special: "blog-listing", "blog-post", "layout", "head". No .liquid suffix. |
theme | string | Theme name (default: "default"). Usually leave as default. |
workspace | string | Workspace name (default: "default"). |
content_apply_layout_preset
Apply a named layout preset to this client's site by writing layout/theme.liquid. When to use this instead of template_upsert: - You want "blank" (no header/footer), "minimal" (footer only), "landing" (header only), "chromed" (edge-to-edge main), or "default" layouts without writing Liquid yourself - You want to quickly test "what does the site look like with no global header?" - You don't have Liquid source for a layout — you just want a sensible starting point Available presets: "default" — header + main + footer (standard; matches bundled theme) "blank" — no header, no foo…
| Parameter | Type | Description |
|---|---|---|
preset * | string | Layout preset name. One of: default, blank, minimal, chromed, landing |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
theme | string | Theme name (default: "default"). |
workspace | string | Workspace name (default: "default"). |
content_get_section_source
Get the current Liquid source for a named section (header, footer, hero, etc.). Param-name compatibility (templates.ts duplicate merged here 2026-05-20): - Canonical: { section_slug } - Legacy: { section } When to use this instead of template_get: - You want to see "what Liquid is this client currently rendering for the header?" - You want to check whether an override exists for a section before writing one - You want to copy the current source as a starting point for modification Returns: - If client has an override: returns the override source with origin="client_override" - If clien…
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
section | string | Legacy alias for section_slug (templates.ts duplicate compat). Pass either one. |
section_slug | string | Canonical section identifier — common values: "header", "footer", "hero". Special: "blog-listing", "blog-post", "layout", "head". No .liquid suffix. |
workspace | string | Workspace name (default: "default"). |
component_update_and_propagate
Update a component's HTML/CSS/props/etc. AND repoint every consuming page to the new version, in one atomic call. When to use this instead of component_update: - The component is referenced from multiple pages and you want all of them to pick up the change - You want a single confirm_token covering the component + all page mutations (instead of one per page) - You want staged rollout — pass `pages: ["home"]` to update the component everywhere but only repoint the home page; other pages keep referencing the old version How it works: 1. Call with `dry_run: true` — returns `affected_pages`…
| Parameter | Type | Description |
|---|---|---|
slug * | string | Component slug (e.g. "hero", "pricing-cards"). Must already be published for this client. |
bump | string | How to bump semver from current version. Default: patch. |
confirm_token | string | Token from a prior dry_run. Consume to perform the mutation. |
css | string | New CSS (injected via Shadow DOM at render time). |
default_props | object | New default prop values. |
dependencies | array | CDN library dependency keys (Tier 3). Validated against allowlist. |
description | string | Update description. |
dry_run | boolean | Preview mode — returns affected_pages + confirm_token without mutating. Default: false. |
html_template | string | New HTML template. Inline <style> tags will be rejected. |
js | string | New JS (Tier 2 scoped hydration). |
name | string | Update display name. |
pages | array | Limit propagation to these page slugs. Omit to propagate to every consuming page. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
props_schema | object | New JSON Schema for prop validation. |
workspace | string | Workspace name (default: "default"). |
component_rollback
Roll a component back to an earlier version's content. Creates a new published version (so the forward audit trail stays intact) and repoints every consuming page to it. When to use: - component_update_and_propagate went wrong and you need to unroll it - You want to revert to a known-good version without manually re-entering the old HTML/CSS - You want staged rollback — pass pages=["home"] to only revert the home page's pin How it works: 1. Call with dry_run=true — returns a confirm_token for the rollback action 2. Inspect preview; if right, call again with confirm_token 3. Service fetch…
| Parameter | Type | Description |
|---|---|---|
slug * | string | Component slug to roll back. |
target_version * | string | Version to restore (e.g. "1.0.3"). Must exist — check list_component_versions first. |
bump | string | How to bump the NEW version that gets the old content. Default: patch. |
confirm_token | string | Token from a prior dry_run. |
dry_run | boolean | Preview mode. Default: false. |
pages | array | Limit repoint to these page slugs. Omit for all. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name (default: "default"). |
upload_local_file
Upload a single local file to SpiderMedia. Reads the file from disk, sniffs content-type from the extension, and POSTs multipart to /dashboard/content/media/upload-batch. Server enforces weight policy (500 KB/file for scroll-sequences/*, 20 MB otherwise; video/* gets 500 MB). Returns {public_url, key, size, content_type}. Filenames: pass preserve_filename=true for deterministic storage keys (scroll-sequences that consume {base_url, pattern, count}). Default false keeps the legacy YYYYMMDD_HHMMSS_ prefix. Requires LLM11 SpiderMedia backend 2026-04-18+ when preserve_filename=true. Allowed ext…
| Parameter | Type | Description |
|---|---|---|
local_path * | string | Absolute or cwd-relative path to the file on disk |
filename | string | Rename the file on upload (default: use the local basename) |
folder | string | Target folder in the bucket, e.g. 'scroll-sequences/hero' or 'migrations/homepage' |
preserve_filename | boolean | If true, storage key is {folder}/{filename} exactly (overwrites on collision). Default false. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name (default: "default") |
upload_local_directory
Upload all matching files from a local directory to SpiderMedia. Walks the directory (recursive), sniffs content-type, uploads in a single /media/upload-batch request (up to 500 MB total for general folders, 20 MB for scroll-sequences/*). Returns {uploaded: [...], failed: [...], warnings}. Scroll-sequence workflow: - Default folder rule: if `folder` starts with "scroll-sequences/", the tool auto-enables both `auto_optimize=true` (Sharp → WebP q75, max 1920px) and `preserve_filename=true` (so frame_0001.webp lands at frame_0001.webp). - Override with explicit flags if needed. Filtering…
| Parameter | Type | Description |
|---|---|---|
local_dir * | string | Absolute or cwd-relative path to the directory on disk |
auto_optimize | boolean | Run Sharp locally before upload (WebP q75, max 1920px). Default: true for scroll-sequences/*, false otherwise. |
folder | string | Target folder in the bucket. For scroll-sequences use 'scroll-sequences/<name>'. |
max_width | number | When optimizing, max image width (default 1920) |
pattern | string | Optional glob pattern (e.g. "frame_*.webp"). Matched against filename and relative path. |
preserve_filename | boolean | Deterministic storage keys. Default: true for scroll-sequences/*, false otherwise. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
quality | number | When optimizing, WebP quality 1-100 (default 75) |
workspace | string | Workspace name (default: "default") |
directory_list_categories
List every directory category for the current tenant (includes empty ones). Returns {categories: [{id, name, slug, description, listing_count, city_count, seo_title_template, seo_description_template, ...}], total, page, page_size}.
| Parameter | Type | Description |
|---|---|---|
page | number | |
page_size | number | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name (default: "default") |
directory_create_category
Create a directory category. SEO templates accept {category}, {city}, {listing} placeholders. Example: {name: "Plumbers", seo_title_template: "Best {category} in {city} | Acme Directory"}.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
data_source | object | Config for future SpiderMaps sync (job_type, query_filter, ...) |
description | string | |
icon | string | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
seo_description_template | string | Supports {category}, {city}, {listing} |
seo_title_template | string | Supports {category}, {city}, {listing} |
slug | string | URL slug (auto-generated from name if omitted) |
sort_order | number | |
template | object | Per-category template config JSONB |
workspace | string |
directory_get_category
Get a single category plus every city that has published listings in it.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
directory_update_category
Update category fields. Pass only the fields you want to change.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
data_source | object | |
description | string | |
icon | string | |
name | string | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
seo_description_template | string | |
seo_title_template | string | |
sort_order | number | |
template | object | |
workspace | string |
directory_delete_category
Delete a directory category and all its listings (cascade).
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
directory_list_listings
List directory listings. Filter by category, city, status. Use this to verify what an IDAP dump wrote, or to audit a category before publishing changes.
| Parameter | Type | Description |
|---|---|---|
category_slug | string | |
city | string | |
page | number | |
page_size | number | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
status | string | draft | published | archived (default published) |
workspace | string |
directory_upsert_listing
Create or update a single listing in a category. Upsert keyed on (category, slug). For bulk work (IDAP dumps, SpiderMaps job output), use directory_bulk_upsert_listings instead — it's one call vs N.
| Parameter | Type | Description |
|---|---|---|
category_slug * | string | |
name * | string | |
address | string | |
city | string | |
country | string | |
data | object | Free-form JSONB — hours, amenities, images, whatever |
description | string | |
email | string | |
latitude | number | |
longitude | number | |
phone | string | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
rating | number | |
review_count | number | |
slug | string | Auto-generated from name if omitted |
source_job_id | string | SpiderIQ job UUID that produced this listing |
state | string | |
status | string | draft | published | archived (default published) |
website | string | |
workspace | string |
directory_bulk_upsert_listings
Import many listings into a category in one transaction. Max 5000 per call. Primary path for IDAP dumps + SpiderMaps job outputs. Each listing accepts the same fields as directory_upsert_listing. Upsert keyed on (category, slug); missing slugs auto-generate from name. Returns {upserted, failed, affected_cities: ["city-slug-1", ...], failures}. Refreshes category counts + city_stats materialized view on success.
| Parameter | Type | Description |
|---|---|---|
category_slug * | string | |
listings * | array | Array of {name, slug?, city, state?, description?, phone?, email?, website?, rating?, review_count?, address?, latitude?, longitude?, data?, status?, source_job_id?} |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
directory_import_from_idap
Populate a directory category from the tenant's IDAP data (norm_cli_*.businesses). norm_cli_* is the canonical store for every business SpiderIQ has seen for this tenant (SpiderMaps + SpiderSite + SpiderCompanyData + SpiderPeople merged). This reads directly — no scheduler, no sync pipeline, no external call. Agent re-runs this tool whenever they want to refresh the directory. Filters (all optional): category_filter matches the categories[] array, country_code exact (uppercase), city is ILIKE substring, rating_min is inclusive. limit caps at 5000 to align with bulk_upsert. Returns {upsert…
| Parameter | Type | Description |
|---|---|---|
category_slug * | string | |
category_filter | string | Match businesses.categories array member (e.g. "Plumber") |
city | string | ILIKE substring match |
country_code | string | ISO-2 uppercase (e.g. "US") |
limit | number | Max rows to import (hard cap 5000) |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
rating_min | number | Inclusive lower bound on rating |
workspace | string |
directory_delete_listing
Delete a listing by (category_slug, listing_slug). Refreshes city_stats.
| Parameter | Type | Description |
|---|---|---|
category_slug * | string | |
listing_slug * | string | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_get_playbook
Look up the canonical tool-sequence for a stated goal. No intent → returns the index of all available playbooks (task keys + when-to-use summaries). Intent = exact task key (e.g. "build_a_directory") → returns the full recipe. Intent = natural language (e.g. "build a directory") → fuzzy-matches against task keys + when-text, returns up to 3 best matches ranked by score. This is the fastest way for a fresh agent to find the right tool chain for a given goal without scanning the full /content/help (~50 KB). Each recipe names the exact tools to call, common variants, and anti-patterns.
| Parameter | Type | Description |
|---|---|---|
format | string | yaml | json (default yaml — cheaper to parse for this shape) |
intent | string | Goal in natural language (e.g. "publish a blog post", "build a scroll hero") OR exact task key. Omit to get the index. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
content_duplicate_page
Duplicate a page. Returns the new draft. When to use: - Client wants a starting point that's similar to an existing page (faster than rebuilding from blocks) - You're applying a template by cloning master pages into the tenant (template gallery) - Internal A/B testing — fork a published page, edit copy, publish under a new slug How it works: 1. Reads the source page (must be owned by the caller's client; cross-tenant read refused 404) 2. Picks a fresh slug (`{original}-copy`, `-copy-2`, `-copy-3`, ... lowest unused) unless `new_slug` is provided 3. INSERTs a new content_pages row with stat…
| Parameter | Type | Description |
|---|---|---|
page_id * | string | UUID of the page to duplicate. |
new_slug | string | Optional flat slug for the duplicate. Auto-generated as `{original}-copy[-N]` if omitted. Must match `^[a-z0-9][a-z0-9-]*$` (no `/`). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name (default: "default"). |
content_duplicate_block
Insert a deep copy of one block into the same page. When to use: - Duplicating a CTA section to use in a different position on the same page - Cloning a tier-priced "feature card" inside a pricing-grid block - Building variations of the same section without rebuilding from scratch How it works: 1. Reads the source page; finds the block by id 2. Deep-copies the block JSON, regenerates the block's id (fresh UUID) 3. Inserts the copy at `position` ('before', 'after' default, or an int index) 4. Returns the updated PageResponse with the new block in place The page's status is unchanged (this do…
| Parameter | Type | Description |
|---|---|---|
block_id * | string | ID of the block to duplicate. |
page_id * | string | UUID of the page. |
position | 'before' or 'after' (default) the source block, or an int index. | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name (default: "default"). |
content_duplicate_post
Duplicate a blog post. Returns the new draft with a fresh slug. The body (Tiptap JSON), cover image URL, author, and tags all copy over. Status is forced to 'draft' regardless of the source's state.
| Parameter | Type | Description |
|---|---|---|
post_id * | string | UUID of the post to duplicate. |
new_slug | string | Optional flat slug. Auto-generated if omitted. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name (default: "default"). |
content_duplicate_doc
Duplicate a doc page. Copy lives as a sibling under the same parent node in the docs tree (same parent_id), with a fresh slug + full_path.
| Parameter | Type | Description |
|---|---|---|
doc_id * | string | UUID of the doc to duplicate. |
new_slug | string | Optional flat slug. Auto-generated if omitted. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name (default: "default"). |
content_list_site_templates
List SpiderIQ-curated site templates. Public read — no auth required. When to use: - Client wants to see what starter sites are available before committing - Filtering for a specific industry (saas, agency, restaurant, ecommerce, portfolio, local-service, blog, event, landing) or use case (marketing, docs, blog, directory, personal) - Surfacing the featured set on a dashboard "browse templates" page Each template carries: - slug (apply with content_apply_site_template) - name + description + industry + use_case + tags - preview_url (live preview at preview-XXX.sites.spideriq.ai) - previe…
| Parameter | Type | Description |
|---|---|---|
industry | string | saas | agency | restaurant | ecommerce | portfolio | local-service | blog | event | landing |
is_featured | boolean | Filter to is_featured templates only. |
limit | integer | Default 50. |
offset | integer | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
tag | string | Filter to templates whose tags array contains this tag. |
use_case | string | marketing | docs | blog | directory | personal |
workspace | string | Workspace name (default: "default"). |
content_get_site_template
Fetch a single site template by slug. Public read — no auth required. Returns the full template detail including the list of pages, components, nav locations, and settings keys that would be cloned on apply. Use this to preview the impact before calling content_apply_site_template.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Template slug (e.g. "saas-landing", "restaurant-menu"). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name (default: "default"). |
content_apply_site_template
Clone a site template into the current tenant. Phase 11+12 gated. When to use: - New tenant just provisioned, agent wants to give them something to start from - Client picked a template from the gallery, agent wires it up - A/B testing different starter sites without rebuilding from blocks How it works: 1. Reads the template's source pages from the SpiderIQ-owned template-source tenant 2. Clones each into the current tenant as status='draft' with fresh block UUIDs 3. Copies navigation menus for header + footer (or whatever locations the template names) 4. Copies whitelisted theme settings ke…
| Parameter | Type | Description |
|---|---|---|
slug * | string | Template slug to apply. |
confirm_token | string | Phase 11+12: consume a prior preview token and apply for real. |
dry_run | boolean | Phase 11+12: preview the apply and receive a confirm_token without mutating. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name (default: "default"). |
content_create_site_template
Register a NEW site-template catalog row so a built site/page becomes installable from the marketplace. Phase 11+12 gated. AUTHORING-ONLY. Auth: needs super_admin OR a PAT scoped to a marketplace-AUTHORING brand (clients.is_marketplace_authoring=TRUE — e.g. the demo-publish authoring account). A normal tenant PAT gets 403. The source pages must already exist (published) on source_client_id; this call just registers the catalog row that clones them on apply. PAGE TEMPLATES: set is_single_page=true AND pass exactly ONE source_page_slug (opt-in / thank-you / VSL / sales / …). The server enf…
| Parameter | Type | Description |
|---|---|---|
name * | string | Display name in the gallery. |
slug * | string | Unique catalog slug, e.g. "opt-in-minimal". |
source_client_id * | string | client_id (cli_… or UUID) whose published pages are the master copies to clone. |
source_page_slugs * | array | Page slugs to clone on apply. For a page template: exactly ONE. |
confirm_token | string | Phase 11+12: consume a prior preview token and create for real. |
description | string | |
dry_run | boolean | Phase 11+12: preview + receive a confirm_token without mutating. |
industry | string | |
is_featured | boolean | |
is_public | boolean | Default true → visible in the gallery. Set false to stage a draft, flip true on review. |
is_single_page | boolean | TRUE = single-page "page template" (requires exactly one source_page_slug). |
preview_thumbnail_url | string | Hero screenshot URL (host-allowlisted). Or attach later via content_update_site_template. |
preview_url | string | Live preview URL (host-allowlisted: R2 / curated stock). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
replication_prompt | string | |
source_component_slugs | array | |
source_nav_locations | array | Whole-site only; omit for page templates. |
source_settings_keys | array | |
tags | array | |
use_case | string | opt-in | thank-you | vsl | webinar | sales | pricing | coming-soon | 404 (page templates) — or a vertical for whole-site. |
workspace | string | Workspace name (default: "default"). |
content_update_site_template
Patch an existing site-template catalog row (rename, attach a preview image, toggle is_public, retag, change source bindings, flip is_single_page). Phase 11+12 gated. AUTHORING-ONLY. Auth: same as content_create_site_template (super_admin OR marketplace-authoring-brand PAT). Commonly used right after content_create_site_template to set preview_thumbnail_url from a content_upload_template_preview result, or to publish a staged draft (is_public=true). Phase 11+12 flow: dry_run=true → confirm_token → call again with confirm_token. Only the fields you pass are changed.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Catalog slug to patch. |
confirm_token | string | |
description | string | |
dry_run | boolean | |
industry | string | |
is_featured | boolean | |
is_public | boolean | |
is_single_page | boolean | |
name | string | |
preview_thumbnail_url | string | |
preview_url | string | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
replication_prompt | string | |
source_client_id | string | |
source_component_slugs | array | |
source_nav_locations | array | |
source_page_slugs | array | |
source_settings_keys | array | |
tags | array | |
use_case | string | |
workspace | string | Workspace name (default: "default"). |
content_list_page_templates
List SpiderIQ-curated SINGLE-PAGE templates (the Page Template catalog). Public read — no auth required. When to use: - An agent or client needs a landing page, opt-in, thank-you, VSL, webinar, sales, coming-soon, 404, or pricing page and wants a proven starting point - ALWAYS prefer this over generating a page from scratch — clone-and-adapt is faster and more reliable than authoring Liquid blind ("adapt, don't generate") Each template carries: - slug (clone with content_apply_page_template) - name + description + industry + use_case + tags - preview_url (live preview) + preview_thum…
| Parameter | Type | Description |
|---|---|---|
industry | string | saas | agency | restaurant | ecommerce | portfolio | local-service | blog | event | landing |
is_featured | boolean | Filter to is_featured templates only. |
limit | integer | Default 50. |
offset | integer | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
tag | string | Filter to templates whose tags array contains this tag. |
use_case | string | opt-in | thank-you | vsl | webinar | sales | pricing | coming-soon | 404 |
workspace | string | Workspace name (default: "default"). |
content_get_page_template
Fetch a single page template by slug. Public read — no auth required. Returns the full detail including the ONE source page that gets cloned on apply, its components, and any settings keys. Use this to preview a template before calling content_apply_page_template. (A page template is a content_site_templates row, so this resolves the same endpoint as content_get_site_template.)
| Parameter | Type | Description |
|---|---|---|
slug * | string | Page template slug (e.g. "opt-in-minimal", "vsl-classic"). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name (default: "default"). |
content_apply_page_template
Clone a page template's single page into the current tenant. Phase 11+12 gated. When to use: - A client/agent picked a page template and wants it added to their site - Building a funnel one page at a time (opt-in → thank-you → sales) from templates - You want a working page to ADAPT (edit copy/images/colors) instead of generating one How it works: 1. Reads the template's single source page from the SpiderIQ template-source tenant 2. Clones it into the current tenant as status='draft' with fresh block UUIDs 3. Applies any whitelisted theme settings the template carries Phase 11+12 flow:…
| Parameter | Type | Description |
|---|---|---|
slug * | string | Page template slug to apply. |
confirm_token | string | Phase 11+12: consume a prior preview token and clone for real. |
dry_run | boolean | Phase 11+12: preview the apply and receive a confirm_token without mutating. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string | Workspace name (default: "default"). |
content_list_marketplace_components
Browse the SpiderIQ section library — ready-to-insert sections grouped by category. Public read, no auth. When to use: - Filling out an existing page that needs a hero / pricing / FAQ block - Adding a sign-in / forgot-password / reset-password page (category=authentication) - Picking the right component shape before calling page_insert_section - Surfacing the gallery on a dashboard "browse sections" page Categories (use `category` filter): hero, features, pricing, social-proof, content, forms, team, footer, header, cta, faq, authentication The `authentication` category holds 3 designabl…
| Parameter | Type | Description |
|---|---|---|
category | string | hero | features | pricing | social-proof | content | forms | team | footer | header | cta | faq | authentication |
is_featured | boolean | Surface featured-only sections. |
limit | integer | Default 100. |
offset | integer | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
tag | string | Filter to components whose tags array contains this tag. |
workspace | string | Workspace name (default: "default"). |
content_list_marketplace_bg_videos
Browse the curated background-video library — 12 short looping clips across 6 categories. Public read, no auth. When to use: - Picking a clip for a hero-video-bg or sys-bg-video block - Surfacing the catalog on a dashboard "browse bg videos" page Categories: nature | city | abstract | food | tech | people Each result carries: slug, name, description, r2_url, poster_url, duration_seconds, loop_seconds, category, tags, is_featured.
| Parameter | Type | Description |
|---|---|---|
category | string | nature | city | abstract | food | tech | people |
is_featured | boolean | |
limit | integer | |
offset | integer | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
tag | string | |
workspace | string | Workspace name (default: "default"). |
content_get_marketplace_bg_video
Fetch a single curated background video by slug. Public read.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
page_insert_section
Insert a marketplace section into an existing page. Phase 11+12 gated. When to use: - Adding a hero / pricing / FAQ block to a page the customer already has - Programmatic page assembly: list sections → preview → insert → publish position semantics: - "end" (default) — append at the end of the blocks array - "start" — prepend - "before" / "after" — relative to anchor_block_id (REQUIRED when used) - integer — explicit 0-based index, clamped to [0, len(blocks)] Phase 11+12 flow: 1. Call with dry_run=true → returns {dry_run, preview, confirm_token, expires_at} 2. Inspect the pr…
| Parameter | Type | Description |
|---|---|---|
component_slug * | string | Marketplace component slug (e.g. "hero-headline", "logo-cloud"). |
page_id * | string | UUID of the target page. |
anchor_block_id | string | Required when position is "before" or "after". |
audit_level | string | P5: include an `_audit` block on the success response (or `_rules` block on dry_run). 'all' (default for mutations) returns every finding so the agent sees scroll-sequence empty frames, missing requir… |
component_version | string | Optional pinned version. Omit for latest published. |
confirm_token | string | Phase 11+12: consume a prior preview token. |
dry_run | boolean | Phase 11+12: preview the insertion without mutating. |
position | Where to place the new block. Default: "end". | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
props | object | Component props matching the component's props_schema. Falls through default_props for omitted keys. |
workspace | string | Workspace name (default: "default"). |
marketplace_search
Cross-table search across bg-videos / components / site-templates by AI-discovery axes (Phase D). Use this BEFORE content_list_marketplace_components / content_list_marketplace_bg_videos when the user asks for an asset by intent ("a calm cinematic background video for a luxury hotel") rather than by category. The 4 universal axes (mood / palette / brand_fit / scene_type) plus per-asset agent_meta narrow the catalog by behaviour, not by component name. Universal axes (controlled vocabulary, see marketplace_taxonomy.py): - mood: calm, energetic, bold, confident, dreamy, futuristic, urban, mini…
| Parameter | Type | Description |
|---|---|---|
agent_meta | object | Key/value filters against agent_meta JSONB (e.g. {"pace":"slow","time_of_day":"night"}). |
asset_types | array | Restrict to specific marketplace tables. Omit for all 3. |
brand_fit | array | Industry-vertical fit tags. |
limit | integer | Default 20. |
mood | array | Mood values (any-of match against the column). |
palette | array | Palette tokens. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
scene_type | string | Single scene_type filter. |
workspace | string |
list_data_sources
List the 9 registered content data sources that drive kind='dynamic' components (Phase D). Use this to discover the available source_id values when an agent is configuring a Dynamic block (List, Item Details, etc.). The registry includes: - 4 internal CMS collections: posts, authors, categories, tags - 4 IDAP collections: idap.countries → idap.cities → {idap.streets, idap.businesses} (hierarchical — pass --parent to walk the tree) - 1 singleton: idap.lead (per-request visitor lead context; only Item Details accepts it) Each source carries: - id (use as the source_id in DataBinding /…
| Parameter | Type | Description |
|---|---|---|
parent_id | string | Filter to children of this source (e.g. "idap.countries" returns idap.cities). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
list_data_source_items
Fetch live items from a registered content data source — the same door a kind='dynamic' component binds to (Live Data). Sibling of list_data_sources. Use this to PREVIEW what a dynamic component will render, or to discover a source's row shape before wiring a component's `sources`. It returns real, published, tenant-scoped records. v1 sources: posts, authors, categories, tags, changelog. (idap.* collections → 501 Phase 2; a singleton like idap.lead → 422 — those reach /lp/ templates as `lead`.) Filtering: pass `filter` keys matching the source's filterable fields (discover via list_…
| Parameter | Type | Description |
|---|---|---|
source_id * | string | Registered source id (list_data_sources). v1: posts, authors, categories, tags, changelog. |
fields | array | Project to these field ids only (default: all). |
filter | object | Filter by the source's filterable fields, e.g. {"tag":"news","category":"..."}. |
limit | integer | Max rows (default 50). |
offset | integer | Pagination offset (default 0). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
sort | string | Sort field with optional ':asc'/':desc' (or '-field'), e.g. '-published_at'. |
workspace | string |
set_component_kind
Set the 4-class behavioural taxonomy on a component: kind ∈ {static, interactive, dynamic, extension}. Phase 11+12 gated. When to use: - Curating a freshly-created custom component into the right marketplace tab - Reclassifying a legacy 'static' component as 'interactive' once you add JS - Promoting a Dynamic component (kind='dynamic' requires block_type + sources to already be set on the row, or this PATCH 400s on the DB CHECK constraint) The DB CHECK constraints (migration 174) enforce kind invariants — setting kind='dynamic' on a row missing block_type returns 400 with a specific cons…
| Parameter | Type | Description |
|---|---|---|
component_id * | string | UUID of the component. |
kind * | string | 4-class behavioural taxonomy (Phase A). |
confirm_token | string | Consume a prior preview token to commit. |
dry_run | boolean | Default true — preview without mutating. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
set_component_agent_meta
Patch the agent-discovery axes on a component: universal axes (mood / palette / brand_fit_tags / scene_type) + per-component agent_meta JSONB. Phase 11+12 gated. Use this to make a component findable by intent through marketplace_search. Strict enum validation at the API boundary — unknown values 422 with the accepted vocabulary listed. agent_meta keys (ComponentAgentMeta, extra="forbid"): - interaction_pattern: static, click, hover, scroll, timer, form, drag - trigger_kind: page-load, scroll-into-view, click, hover, exit-intent, timer-fixed-date, timer-elapsed, form-submit, geo-match, n…
| Parameter | Type | Description |
|---|---|---|
component_id * | string | |
agent_meta | object | ComponentAgentMeta keys (see description for vocabulary). |
brand_fit_tags | array | |
confirm_token | string | |
dry_run | boolean | Default true. |
mood | array | |
palette | array | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
scene_type | string | |
workspace | string |
set_bg_video_agent_meta
Patch agent-discovery axes + agent_meta on a bg-video catalog row (super_admin). Phase 11+12 gated. Same shape as set_component_agent_meta, but BgVideoAgentMeta has different keys: - pace: slow, medium, fast (slow=meditative, medium=narrative, fast=energetic) - time_of_day: dawn, day, dusk, night - weather: clear, cloudy, rain, snow, fog, stormy (NULL = indoor / abstract) - has_people: bool (TRUE if humans visible) - aspect_ratio: 16:9, 9:16, 1:1, 4:3, 21:9 - has_audio: bool - music_tempo_bpm: 20–300 (only meaningful when has_audio=true) - transcript: ≤ 2000 chars (accessibility + agent c…
| Parameter | Type | Description |
|---|---|---|
slug * | string | Bg-video slug (e.g. "alpine-wildflowers"). |
agent_meta | object | BgVideoAgentMeta keys (see description). |
brand_fit_tags | array | |
confirm_token | string | |
dry_run | boolean | Default true. |
mood | array | |
palette | array | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
replication_prompt | string | Optional free-form curator prompt (≤ 4000 chars). |
scene_type | string | |
workspace | string |
set_site_template_agent_meta
Patch agent-discovery axes + agent_meta on a site_template catalog row (super_admin). Phase 11+12 gated. SiteTemplateAgentMeta keys: - page_count: 1–200 (number of pages the template ships with) - has_blog: bool - has_pricing: bool - has_directory: bool (programmatic SEO target) - has_booking: bool (SpiderBook integration) - conversion_strategy: same vocabulary as ComponentAgentMeta - style_aesthetic: minimal, bold, editorial, playful, premium, technical, brutalist, soft - component_set: array of component slugs the template ships with (≤ 100) The site-template catalog is global — supe…
| Parameter | Type | Description |
|---|---|---|
slug * | string | Site-template slug (e.g. "saas-minimal"). |
agent_meta | object | SiteTemplateAgentMeta keys (see description). |
brand_fit_tags | array | |
confirm_token | string | |
dry_run | boolean | Default true. |
mood | array | |
palette | array | |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
replication_prompt | string | |
scene_type | string | |
workspace | string |
marketplace_suggest_agent_meta
Suggest mood / palette / brand_fit_tags / scene_type / agent_meta for one marketplace asset using the SpiderGate V2 inference engine. Two-step apply pattern (recommended): 1. Call `marketplace_suggest_agent_meta` to get a SuggestEnvelope with proposed values + per-key confidence (high / medium / low → action: auto_apply | review | drop). 2. Review the envelope. For values you trust, call the matching apply tool: - bg_video → set_bg_video_agent_meta - component → set_component_agent_meta - site_template → set_site_template_agent_meta The apply tools are gated (dry_run=true…
| Parameter | Type | Description |
|---|---|---|
asset_type * | string | Which marketplace table to suggest for. |
slug * | string | Asset slug (e.g. "alpine-wildflowers", "hero-bold-default", "agency-minimal"). |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
marketplace_form_test_submit
Test-fire a submission against a dynamic form block. NOT the production submit path — real form submissions come from a visitor's browser via POST /content/forms/{form_id}/submit (no auth). This MCP tool exists so agents can validate a form's wiring during authoring + smoke-test before publishing. When to use: - After authoring a new form block, fire a synthetic submission to confirm validation + persistence work. - After changing fields / submit_url / fallback_idap_lead, verify the new behaviour without leaving the editor. - Debugging cross-tenant isolation: pick a form_id from one tenant,…
| Parameter | Type | Description |
|---|---|---|
form_id * | string | Composite form id "<page_uuid>:<block_uuid>". Both halves UUIDs. |
submission * | object | Field name → value map. Validated against the form's props.fields list at the server. Extra fields rejected. |
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
request_id | string | Optional retry-idempotency token. Combined with the resolved client_id, dedups duplicate test-fires within a 24h window. |
workspace | string |
content_audit_links
Walk every published page's blocks + navigation menus and validate internal links against the published-page roster + active redirects. Returns a structured report: - valid_count: number of links that resolved correctly - broken: [{path, source, reason}] — each broken link with its tree position - proposed_redirects: [{from, to, status_code}] — heuristic suggestions - known_redirects: [{from, to, status_code}] — already-active redirects The "source" field is JSONPath-shaped (e.g. "page:home/block[2].url", "navigation:header[3]") so callers can navigate straight to the offending…
| Parameter | Type | Description |
|---|---|---|
project | string | Optional project — a website inside the workspace (proj_xxx) — to scope this call to. Sent as the X-Project-Id header. If omitted, the spideriq.json / SPIDERIQ_PROJECT_ID binding (or the workspace… |
workspace | string |
list_projects
List the projects (websites) in the current workspace. Each project has an `id` (proj_xxx) that you pass as the optional `project` argument of any content/template tool — or bind via `spideriq use <workspace> --project <proj_>` — to scope content operations to that website.
| Parameter | Type | Description |
|---|---|---|
workspace | string | Credentials slot (default "default") in ~/.spideriq/credentials.json. |
create_project
Create a new project (website) in the current workspace. Returns the new project including its `proj_` id. May return 403 with an upgrade CTA if the workspace is already at its plan's project cap (max_deployed_sites).
| Parameter | Type | Description |
|---|---|---|
name * | string | Human-facing project name. |
slug | string | Optional URL-safe slug (auto-derived from name when omitted). |
workspace | string | Credentials slot (default "default"). |
list_recipes
List all SpiderPublish workflow recipes shipped in @spideriq/skills. Returns name, description, and kind (rule | recipe | config) for each manifest entry. Call get_recipe(name) to read full content. Use this when the user asks "how do I X?" — the recipe index points you at a known-good workflow markdown.
| Parameter | Type | Description |
|---|---|---|
kind | string | Filter to a single kind (default: all kinds) |
get_recipe
Fetch the full markdown content of a SpiderPublish recipe (or rule) from @spideriq/skills. Pass the logical name from list_recipes. Returns the recipe text verbatim — paste-able into the working context, or use as a reference while implementing.
| Parameter | Type | Description |
|---|---|---|
name * | string | Logical name (e.g. "clone-a-site", "build-a-homepage", "claude-md") |