set_field
Update a single draft field with a plain string while preserving all other fields. Use it to safely write long text or Markdown without serialization issues.
Instructions
Set ONE field of a content item's draft to a plain string value (merged — other fields are kept). THE MOST ROBUST WAY TO WRITE LONG TEXT/MARKDOWN CONTENT: a flat string parameter survives tool-call serialization that can mangle long strings nested inside data records. For text/markdown/select/datetime/image fields, and the special field name name (the item's display name).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site slug or id to act in (multisite). Omit to use this server's default site. Call list_sites to see what exists — an empty tree or search usually means the wrong site, not missing content. | |
| field | Yes | Field name from the content type (or 'name') | |
| value | Yes | The plain string value | |
| locale | No | Locale code. Omit for the document's own locale (its site-default variant, else its only variant). | |
| documentId | Yes | The item's documentId (stable across locales and versions), e.g. from tree, list_pages or get_content. | |
| allowLanguageMismatch | No | Set true ONLY to deliberately write text whose language differs from the locale branch (the guard otherwise refuses, so e.g. Norwegian text can't silently land on the 'en' branch) |