Back to MCP Overview

Content pages Tools

Content pages: publish a table as pages on your site, list them, or stop publishing.

7 tools

Available Tools

content_bind

Publish a table as pages on a site: its PUBLISHED rows become readable by anyone, only through this site, mapped fields only (drafts and unmapped fields never leave). Writes an access rule on the table that the owner sees and can change. From the chat, an AI client or an API key this waits for the tap of the person on an approval card (nothing is changed before it); an agent or an automation is refused; in the dashboard it is made at once. Params: siteId (site_listProjects), tableId (tables_listTables), urlPattern (the address of a row, ending with :slug, such as /blog/:slug or /recipes/:category/:slug; /api, /.auth, /_static and /assets are kept by the platform), fields (field ids from tables_getFieldsByTableId: slug and title are needed; description, image, imageAlt, body, publishedAt, updatedAt, author, category, tags, featured (a checkbox) and readTime (the field the read time is counted from, usually the body: minutes computed on each read, never stored) are optional (a category is part of the address only when the pattern has :category); only these fields are ever readable; a secret field cannot be mapped), statusField (field id of a text or select Status field), publishedValue (the status value that means published, such as published), optional publicBaseUrl (an https address the pages are also served from through the owner's own proxy, such as https://example.com; every address the pages name uses it: canonical, og:url, JSON-LD, the feed, the sitemap, IndexNow and a changed slug's 301; the proxy forwards the pattern's paths, /assets/*, /sitemap-c-*, /sitemap-n-*, /feed-* and /<IndexNow key>.txt to the site's own address with the same path), titleTemplate ("{title} | {siteName}"), seoFields (field ids holding a row's own seoTitle, seoDescription, ogImage, noindex, canonical, and keywords: written and read back by content_createRow / content_updateRow / content_getRow only, never on the page) and canonicalBindingId (for a table bound to a second site: the binding whose address is the canonical one; default the first made), news (true for a news collection: rows published in the last 48 hours get a Google News sitemap and each page a NewsArticle; needs fields.publishedAt; default false) and authorKind (who each page's Article names as author: organization, the default, is the site; person is the row's fields.author, which must be mapped). Refused with the reason when the pattern is reserved or has no :slug, a mapped field is not a field of the table, a published row's slug is not lowercase letters, digits and hyphens or is used twice, news is on without fields.publishedAt, or authorKind is person without fields.author. Needs "Edit and publish sites" and "Share bases and forms publicly". The site's own page reads a row with serenities.content.get({ path }), with React use() inside <Suspense> so each published row's stored page holds it: every published row is stored as its own page at its address (in the binding's sitemap, named by the site's sitemap index), an unpublished, deleted or closed row answers a real 404, and a changed slug leaves a 301 from the old address; each page carries one JSON-LD graph (Article or NewsArticle: headline, dates from publishedAt and updatedAt, image, the site as publisher) and a link to the table's RSS feed (its latest published rows, newest first), and IndexNow (Bing, Yandex and others; not Google, which reads the sitemap) is told each time a page is published, changed or removed. Returns the new entry with sitemaps (the binding's sitemap URLs, absolute on its canonical base: publicBaseUrl when set, else the site's own address; name them in the robots.txt of a proxied host), or the approval card to tap.

Input Schema

siteIdstringrequired

The site (site_listProjects)

tableIdstringrequired

A table of this workspace (tables_listTables); it may be bound to several sites

urlPatternstringrequired

The address of a row on the site, ending with :slug, such as /blog/:slug or /recipes/:category/:slug

fieldsobjectrequired

Which field fills which part of the page (slug, title, description, image, imageAlt, body, publishedAt, updatedAt, author, category, tags, featured, readTime); only these fields ever leave. Field ids from tables_getFieldsByTableId.

statusFieldstringrequired

Field id of the status (a text or select field, such as Status). The status, slug and category fields must be text-like (text, longtext, select, status, slug, email, url); a calculated field (formula, lookup, rollup, hash, created_time, updated_time) is refused, because its value is worked out after each save and the publish checks could not see it. While bound, tables_updateField refuses retyping them to a non-text type (unbind first)

publishedValuestringrequired

The status value that means published, such as published

publicBaseUrlstring

An https address the pages are also served from (your own proxy), such as https://example.com; the canonical address of a page is this plus its path

titleTemplatestring

The page title, with {title} and {siteName}, such as "{title} | {siteName}"

seoFieldsobject

Optional per-row overrides: the field ids holding a row's own seoTitle, seoDescription, ogImage, noindex, canonical

canonicalBindingIdstring

For a table bound to a second site: the binding whose address is the canonical one (default: the first binding made)

newsboolean

A news collection (default false): its rows of the last 48 hours get a Google News sitemap and each page a NewsArticle. Needs fields.publishedAt

authorKindstring

Who each page's Article names as author: 'organization' (default, the site) or 'person' (the row's fields.author)

Example Call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "content_bind",
    "arguments": {
          "siteId": "example",
          "tableId": "example",
          "urlPattern": "example"
    }
  }
}
content_unbind

Stop publishing a table on a site: removes the binding and the access rule it wrote on the table. It only closes access, so it is made at once, with no approval card. Param: bindingId (from content_list). Needs "Edit and publish sites". Returns the binding id.

Input Schema

bindingIdstringrequired

From content_list

Example Call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "content_unbind",
    "arguments": {
          "bindingId": "example"
    }
  }
}
content_createRow

Add a row (a blog post) to a collection by PAGE ROLE, never by field id. Params: bindingId (content_list; a blog: blog_getSettings bindingId), data: { slug, title, description, body (markdown), image (URL), imageAlt, author, category, tags (a list), featured (true or false), status, publishAt (a blog only), publishedAt (an ISO date and time with its zone, or null; never in the future while the row is published; left empty, the server sets it when the row is first published and keeps it after), seoTitle, seoDescription, keywords (one text, comma-separated, at most 500 characters, stored as sent; never shown on the site) }, only the roles the collection maps. An unknown or unmapped role is refused naming it, and so is a featured that is not true or false or keywords that are not one text of at most 500 characters. Content updated at and Edited by are set by the server; the one exception is an import: send updatedAt (ISO date and time with its zone, not before publishedAt, not in the future on a published row) together with publishedAt and it is kept as sent (never on updateRow). A slug already used by another row of the collection (draft or published) is refused. status published publishes it (needs "Publish content"; the slug must be lowercase letters, digits and hyphens) and renders its page. Needs "Edit rows and fields". Returns { id, slug, contentUpdatedAt (the text version), updatedAt (the row version: pass it to content_updateRow as expectedUpdatedAt) }.

Input Schema

bindingIdstringrequired

The collection (content_list; a blog: blog_getSettings bindingId)

dataobjectrequired

The row's values BY ROLE, never by field id: slug, title, description, body, image, imageAlt, author, category, tags, featured, status, publishAt, publishedAt, seoTitle, seoDescription, keywords (only the roles this collection maps; publishAt on a blog). publishedAt is an ISO date and time with its zone (or null): left empty, the server sets it when the row is first published, and keeps it after (edits, unpublish, republish); never in the future on a published row. featured is true or false; keywords is one text, comma-separated, at most 500 characters, stored as sent. Content updated at and Edited by are the server's (each text change stamps them); never send them on an update. Only an import may send updatedAt on createRow, together with publishedAt (an ISO date and time with its zone, not before publishedAt, not in the future on a published post), and it is stored as sent.

Example Call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "content_createRow",
    "arguments": {
          "bindingId": "example",
          "data": {}
    }
  }
}
content_updateRow

Change a row (a blog post) of a collection by PAGE ROLE; only the roles sent change. Params: bindingId, rowId, data (as content_createRow), expectedUpdatedAt (the updatedAt you last read: an app must send it, anyone may; when the post changed in any way since (text, status, category, image, slug, tags), the update is refused with "This post was edited since you last read it; read it again and start from the live text" and nothing changes). Content updated at and Edited by move only when title, description or body really change (never for featured, keywords or the other roles). Setting status published publishes it (needs "Publish content"). Needs "Edit rows and fields". Returns { id, slug, contentUpdatedAt, updatedAt }.

Input Schema

bindingIdstringrequired

The collection (content_list; a blog: blog_getSettings bindingId)

rowIdstringrequired

The row (its id from createRow, or tables_getRows)

dataobjectrequired

The row's values BY ROLE, never by field id: slug, title, description, body, image, imageAlt, author, category, tags, featured, status, publishAt, publishedAt, seoTitle, seoDescription, keywords (only the roles this collection maps; publishAt on a blog). publishedAt is an ISO date and time with its zone (or null): left empty, the server sets it when the row is first published, and keeps it after (edits, unpublish, republish); never in the future on a published row. featured is true or false; keywords is one text, comma-separated, at most 500 characters, stored as sent. Content updated at and Edited by are the server's (each text change stamps them); never send them on an update. Only an import may send updatedAt on createRow, together with publishedAt (an ISO date and time with its zone, not before publishedAt, not in the future on a published post), and it is stored as sent.

expectedUpdatedAtstring

The updatedAt you last read for this row (from createRow, updateRow or tables_getRows). An app must send it; when the row changed in any way since (text, status, category, image, slug, tags), the update is refused and nothing changes (read it again first)

Example Call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "content_updateRow",
    "arguments": {
          "bindingId": "example",
          "rowId": "example",
          "data": {}
    }
  }
}
content_getRow

Read one row (a blog post) of a collection by PAGE ROLE, drafts and scheduled posts included, so you start from the live text before you change it. Params: bindingId (content_list; a blog: blog_getSettings bindingId), rowId (from content_createRow, content_updateRow or tables_getRows). Returns { id, slug, updatedAt (the row version: pass it to content_updateRow as expectedUpdatedAt), contentUpdatedAt (the text version), data } where data holds only the roles the collection maps (slug, title, description, image, imageAlt, body, publishedAt, updatedAt, author, category, tags, featured, readTime in minutes) and keywords when mapped; never the status, Edited by, the other SEO fields or any other column. A row of another collection and a missing id are both "Row not found". Whoever may read the table with tables_getRows may read it; a base your access limits close is not found.

Input Schema

bindingIdstringrequired

The collection (content_list; a blog: blog_getSettings bindingId)

rowIdstringrequired

The row (its id from createRow, updateRow or tables_getRows)

Example Call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "content_getRow",
    "arguments": {
          "bindingId": "example",
          "rowId": "example"
    }
  }
}
content_list

List the tables a site publishes as pages: each binding's id, table, address pattern, mapped fields, status field and published value. No row data. Param: siteId (site_listProjects). Returns one entry per table the site publishes that you may see (a table in a base your access limits close is left out), with its tableName.

Input Schema

siteIdstringrequired

The site (site_listProjects)

Example Call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "content_list",
    "arguments": {
          "siteId": "example"
    }
  }
}