FeaturesAI-Native

Let an agent edit your content, safely

An agent connected over MCP can create and edit objects the same way the admin form does — through the same validation, the same events, and the same permissions.

Pro Included in Pro

Private video | Livid
Private video | Livid

Everything an agent writes over MCP goes through the admin form's save path: schema validation, slug generation, and the same events a human edit fires.

Small edits with patch_object

The safe default: it merges only the fields you send, so omitted fields keep their current values and nothing is lost by accident. Three rules govern the merge:

  • Containers replace whole. Send the complete card, deck or list to change any part of it.
  • Clearing is explicit. Send an empty string or an empty array; omitting a field never clears it.
  • A content write never puts a file in a field. A patch never touches the file in an image, file, gallery or depot field, so a blog post is fully writable by an agent and the hero keeps its image. It can still describe a file already there: alt text, credit, tags, focal point or download label.

Files, in their own calls

  • Attach. attach_file_from_url downloads a file from a public URL and saves it the way the admin's upload button does: an image or file is replaced, a gallery gains it at the end, a depot gains it in a folder, with alt text and credit set in the same call.
  • Remove. remove_file deletes one.
  • Same access, with a limit. Both need the same access as patch_object, and attaches are limited to 60 an hour per caller.

Writing back a whole record

update_object merges exactly like patch_object, so a field left out keeps its value, never its default. To write back a record you fetched rather than only the changed fields:

  • Fetch as stored. Read with format: "html" first. The default markdown converts styled-text fields for reading, and writing that back would permanently replace the original HTML.
  • Strip the url key. Read tools decorate results with it; it is not part of the object.
  • Leave the cache alone. Do not clear it after any write: object writes fire the update event, which invalidates the affected page caches for you.

Who can write, and where

  • Pro, with write access. Writing needs the admin persona with an API key, or an OAuth token carrying write access; API keys and the OAuth server are both Pro features. If update_object is missing from an agent's tool list, it is connected read-only.
  • Three gates on every call. The scope the person consented to, what their access groups grant on that collection, and whether the collection is exposed to MCP at all. A blogger's token can save into the blog and is refused on products, however broad its scopes.
  • Briefed by the schema. Schema descriptions and property help text are an agent's only documentation of your content model. tcms schema:lint --strict fails on the ones you left empty.

In practice

What it looks like on the command line

shell
# Fetch as stored, not converted for reading
get_object   { collection: "blog", id: "summer-update", format: "html" }

# Change one field; everything else is left exactly as it was
patch_object { collection: "blog", id: "summer-update", data: { title: "New Title" } }

A typical editorial turn: read the record as stored, then patch only what changed.

At a glance

What you get

Patch by default
patch_object merges only the fields you send. Omitted fields keep their values, so a targeted edit needs no fetch-and-replace round trip.
Files go through their own tool
A patch keeps every uploaded file and edits only its alt text, credit or tags. attach_file_from_url adds a file from a public URL; remove_file deletes one.
Scope, group, exposure
Three independent gates on every authenticated call. A token can never reach a collection the approving user's access groups do not grant.
Same save path as the admin
Agent writes run schema validation, slug generation and the normal events — including the cache invalidation that follows an object update.
Brief the agent in the schema
Property help and MCP descriptions are the agent's documentation. tcms schema:lint --strict fails on the ones you left empty.

Agents that write

Common questions

Can an agent wipe fields it was not asked to touch?

No. patch_object and update_object both merge what they send over the stored record, so a field the agent leaves out keeps its value. Clearing a field takes its empty value, sent on purpose.

What stops an agent reaching collections it should not?

Access groups. Every authenticated call must clear the consented scope, the approving user's group grants on that collection, and the collection's MCP exposure setting. All three, every call.

Can an agent upload images?

Yes, from a public URL. attach_file_from_url downloads the file and saves it to an image, file, gallery or depot field the way the admin's upload does, with alt text and a credit in the same call. The object has to exist first, and a file on the agent's own disk cannot be sent.

Do I need to clear the cache after an agent writes?

No. Object writes fire the update event, which invalidates the affected page caches automatically.

Try it on a site of your own.

45 days, every Pro feature, no credit card. Build it, hand it to a client, and see what they can and can’t touch.