update_content
Update a content document by its content_id — edit the body, rename it, or change its stage, visibility, category, or project. Only the fields you supply change, and body updates replace the entire text, so read it first when splicing into existing content.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
team_id | integer | Yes | — | Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions. |
content_id | string (uuid) | Yes | — | UUID of the content to update. Get from list_content, get_content, get_generation_status, or get_project. |
content | string | No | — | New full markdown body. Omit to leave body unchanged. Read existing via get_content first if splicing edits. Images: put a Markdown link to a public https URL on its own line, not inside a table: ``. No base64 or `data:` images (the editor drops them). Marcora links to the image; it does not copy or host it. The new body replaces the old one, so keep existing image links. |
name_override | string | No | — | Custom document name. Setting this locks the name (won't auto-resync from content header on future edits). Omit unless overriding the auto-derived title. |
stage | string | No | — | Mark the document in-progress or ready. Omit to leave stage unchanged. |
visibility | string | No | — | Document visibility. Omit to leave unchanged. |
category_id | integer | No | — | Category ID from list_content_categories. Omit to leave unchanged. |
project_id | string (uuid) | No | — | Project UUID to set as this document's project. Replaces any existing project association. Omit to leave project unchanged. |
change_summary | string | No | — | What changed and why, for the doc's AI-assistant history. Format as skimmable markdown — a bulleted list (bold lead + detail) for multi-part edits. |
confirm_private_sources | string | No | — | Pass only after the user agrees. A write that would put Private material this session read into a team-visible document is refused with a confirmation token; repeat the same call with that token here only once the user has said yes. The token releases only the items it names, for that document only, and expires in 5 minutes. Once released, those items stay released for that document, so later writes there will not ask again. |
Input Schema
{
"type": "object",
"required": [
"team_id",
"content_id"
],
"properties": {
"stage": {
"enum": [
"in_progress",
"ready"
],
"type": "string",
"description": "Mark the document in-progress or ready. Omit to leave stage unchanged."
},
"content": {
"type": "string",
"description": "New full markdown body. Omit to leave body unchanged. Read existing via get_content first if splicing edits. Images: put a Markdown link to a public https URL on its own line, not inside a table: ``. No base64 or `data:` images (the editor drops them). Marcora links to the image; it does not copy or host it. The new body replaces the old one, so keep existing image links."
},
"team_id": {
"type": "integer",
"minimum": 1,
"description": "Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions."
},
"content_id": {
"type": "string",
"format": "uuid",
"description": "UUID of the content to update. Get from list_content, get_content, get_generation_status, or get_project."
},
"project_id": {
"type": "string",
"format": "uuid",
"description": "Project UUID to set as this document's project. Replaces any existing project association. Omit to leave project unchanged."
},
"visibility": {
"enum": [
"private",
"team"
],
"type": "string",
"description": "Document visibility. Omit to leave unchanged."
},
"category_id": {
"type": "integer",
"description": "Category ID from list_content_categories. Omit to leave unchanged."
},
"name_override": {
"type": "string",
"description": "Custom document name. Setting this locks the name (won't auto-resync from content header on future edits). Omit unless overriding the auto-derived title."
},
"change_summary": {
"type": "string",
"description": "What changed and why, for the doc's AI-assistant history. Format as skimmable markdown — a bulleted list (bold lead + detail) for multi-part edits."
},
"confirm_private_sources": {
"type": "string",
"description": "Pass only after the user agrees. A write that would put Private material this session read into a team-visible document is refused with a confirmation token; repeat the same call with that token here only once the user has said yes. The token releases only the items it names, for that document only, and expires in 5 minutes. Once released, those items stay released for that document, so later writes there will not ask again."
}
}
}Output Schema
{
"type": "object",
"required": [
"content_id",
"name",
"content"
],
"properties": {
"name": {
"type": "string",
"description": "Document name (computed from name_override + has_custom_name + content header)."
},
"team": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
}
},
"description": "Team this action applied to."
},
"stage": {
"type": "string",
"description": "Enum: in_progress or ready."
},
"content": {
"type": "string",
"description": "Full document content in markdown."
},
"category": {
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": "integer",
"description": "Category ID."
},
"name": {
"type": "string",
"description": "Category name."
}
},
"description": "Content category, or null if not categorized."
},
"link_url": {
"type": "string",
"description": "Direct URL to view this content in Marcora."
},
"content_id": {
"type": "string",
"format": "uuid",
"description": "Content identifier."
},
"visibility": {
"type": "string",
"description": "Enum: private or team."
}
}
}Instructions
Update a content document by content_id. Partial-update semantics — every field besides content_id is optional and only the fields you supply are changed; everything else is left untouched. At least one mutable field must be supplied.
Reading before writing
For content edits that splice into existing text, call get_content first, edit the markdown in your context, then send the FULL new body back. This tool replaces the entire body — there is no patch / diff mode.
Images
Put a Markdown link to a public https URL on its own line, not inside a table: . Don't use base64 or data: images (the editor drops them). Marcora links to the image; it does not copy or host it. The new body replaces the old one, so keep the existing image links.
Name behavior
By default a document's name auto-syncs from the first markdown header in its body. Set name_override to lock a custom name; once locked, the title stays even when the body is edited. There is no un-lock path in this tool.
Edit lock
If another user is editing the document in Marcora, the save is refused with 403 and the message "Another user is currently editing this document." Nothing is changed; tell the user and retry later.
Stage
Writing stage also keeps the internal is_ready bool in sync. For documents linked to a content plan, transitioning to ready moves the plan to Complete as a side-effect (non-blocking on failure). Setting stage: "in_progress" on a document that belongs to a plan moves that plan back to In_Process (document update steps are not affected).
Project association
Pass project_id to set the document's project. If the document is already in a different project, the old association is replaced; if already in the supplied project, this is a no-op. Omit project_id to leave projects untouched. There's no way to remove a doc from all projects via this tool — use the Marcora app for that.
Privacy
Team-scoped. You can only see and edit content that belongs to the specified team (team_id) AND is either created by you or set to team visibility. Foreign-team content returns accessdenied. Viewer-role users cannot write — the tool requires an Admin, Creator, or Collaborator role.
Errors
notfound—content_iddoesn't match any content documentinputerror— no mutable field supplied; invalidcategory_id; invalidproject_id; or the document is a non-editable document type (e.g. a context-item editor document, which is managed by a separate sync flow)accessdenied— you don't have write access to the document
Example prompts
- "Mark my latest case study as ready"
- "Add this doc to the Q4 GTM project"
- "Rename this document to 'Acme Pricing One-Pager'"
- "Replace the body of my pricing one-pager with the markdown above"
Private material
If this session read an item marked audience: "only_me", writing content or name_override into a team-visible document (or into a private one you also make team) returns a confirmation token instead of saving. Ask the user; only if they agree, repeat the same call with confirm_private_sources set to that token.
If this session read private material that the user has since lost access to (or that changed after the read), update_content also returns a confirmation token (confirm_private_sources) even when it is writing to a document that stays private. That is consent-only: nothing is shared. Ask the user, and repeat the call with confirm_private_sources set to that token only if they agree.
Links: present link_url to the user exactly as returned — copy it character for character. Never retype, shorten, or rebuild a link or the IDs inside it.