Skip to main content
Glama

kaiten_content_write

Destructive

Manage Kaiten documents and folders by creating, editing, moving, publishing, or archiving them, and handle attachments by uploading, renaming, setting covers, or deleting files.

Instructions

Create, edit, move, publish or archive Kaiten documents and folders. Attach, rename, set covers or delete files. Use kaiten_cards_write for card fields and placement. Resolve document and attachment IDs with kaiten_content_read. Use card_uid for restricted targets and include comment_uid or property_uid for that parent. Edit or delete by file_uid. Use target=legacy_card with numeric IDs for existing legacy files or explicitly enabled deprecated uploads. Upload padded base64 in file.data_base64. For a schema change, send a concrete body.schema_version such as v28 with the entire ProseMirror body.data and omit backup_version. Kaiten checks entity and parent permissions. Restricted files inherit parent access. Deleted attachments have no restore. Read back after timeouts before retrying.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "request": "<request>"
    },
    "name": "kaiten_content_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYesChoose an operation, then provide its corresponding args object.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / request / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "additionalProperties": false,
      -        "description": "Create a new document at the given sort position. Supply a group UID for a nested document or clone_uid to copy an accessible document. Use update_document to set content.",
      -        "properties": {
      -          "body": {
      -            "additionalProperties": false,
      -            "description": "New document placement and metadata, with optional source document for cloning.",
      -            "properties": {
      -              "clone_uid": {
      -                "description": "UID of the existing document to copy.",
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              "clone_version": {
      -                "description": "Numeric source document revision to copy when using clone_uid.",
      -                "type": "number"
      -              },
      -              "for_everyone_access_role_id": {
      -                "description": "Role UID that applies when access is for_everyone.",
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              "key": {
      -                "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "parent_entity_uid": {
      -                "anyOf": [
      -                  {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ],
      -                "description": "UID of the destination group. Null selects the root."
      -              },
      -              "sort_order": {
      -                "description": "Numeric position relative to other items in the parent group.",
      -                "type": "number"
      -              },
      -              "title": {
      -                "description": "Display title for this document or document group.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "sort_order"
      -            ],
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "body"
      -        ],
      -        "type": "object"
      -      },
      -      "operation": {
      -        "const": "create_document",
      -        "description": "Create a new document at the given sort position. Supply a group UID for a nested document or clone_uid to copy an accessible document. Use update_document to set content.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "description": "Patch metadata, restore a backup, or edit content using the document’s current schema. Fetch get_document_schema before submitting the complete ProseMirror tree. Review audience and revision before publishing.",
      -            "properties": {
      -              "body": {
      -                "additionalProperties": false,
      -                "description": "Document patch. Omitted fields retain their values; explicit null only clears nullable fields.",
      -                "properties": {
      -                  "access": {
      -                    "anyOf": [
      -                      {
      -                        "const": "for_everyone",
      -                        "type": "string"
      -                      },
      -                      {
      -                        "const": "by_invite",
      -                        "type": "string"
      -                      }
      -                    ],
      -                    "description": "Use for_everyone for role-based general Kaiten access, or by_invite for explicitly invited users."
      -                  },
      -                  "backup_version": {
      -                    "description": "Version of the document backup to restore.",
      -                    "type": "number"
      -                  },
      -                  "data": {
      -                    "additionalProperties": false,
      -                    "description": "Replacement ProseMirror document tree with root type doc and a content array. Submit the full tree for the selected schema.",
      -                    "properties": {
      -                      "attrs": {
      -                        "additionalProperties": {
      -                          "$ref": "#/$defs/__schema1"
      -                        },
      -                        "description": "Root node attributes defined by Kaiten’s document schema.",
      -                        "propertyNames": {
      -                          "type": "string"
      -                        },
      -                        "type": "object"
      -                      },
      -                      "content": {
      -                        "description": "Ordered top-level nodes, which can nest content and contain schema-defined marks and attributes.",
      -                        "items": {
      -                          "$ref": "#/$defs/__schema0"
      -                        },
      -                        "type": "array"
      -                      },
      -                      "marks": {
      -                        "description": "Optional marks defined by the selected Kaiten document schema.",
      -                        "items": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "attrs": {
      -                              "additionalProperties": {
      -                                "$ref": "#/$defs/__schema1"
      -                              },
      -                              "propertyNames": {
      -                                "type": "string"
      -                              },
      -                              "type": "object"
      -                            },
      -                            "type": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            }
      -                          },
      -                          "required": [
      -                            "type"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        "type": "array"
      -                      },
      -                      "text": {
      -                        "description": "Root text field where supported by the document schema.",
      -                        "type": "string"
      -                      },
      -                      "type": {
      -                        "const": "doc",
      -                        "description": "Root node type, doc.",
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "type",
      -                      "content"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "for_everyone_access_role_id": {
      -                    "description": "Role UID that applies when access is for_everyone.",
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "hidden_on_public_site": {
      -                    "description": "Hide this record from the public site when true.",
      -                    "type": "boolean"
      -                  },
      -                  "icon_color": {
      -                    "description": "Kaiten icon color code. Null clears it.",
      -                    "type": [
      -                      "number",
      -                      "null"
      -                    ]
      -                  },
      -                  "icon_type": {
      -                    "anyOf": [
      -                      {
      -                        "anyOf": [
      -                          {
      -                            "const": "material_icon",
      -                            "type": "string"
      -                          },
      -                          {
      -                            "const": "emoji",
      -                            "type": "string"
      -                          }
      -                        ]
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ],
      -                    "description": "Choice of icon representation. Null removes the configured type."
      -                  },
      -                  "icon_value": {
      -                    "description": "Identifier or value of the selected icon. Null clears it.",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "key": {
      -                    "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "notification_period_end": {
      -                    "description": "End timestamp of the notification window. Null clears it.",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "notification_period_start": {
      -                    "description": "Start timestamp of the notification window. Null clears it.",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "parent_entity_uid": {
      -                    "anyOf": [
      -                      {
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ],
      -                    "description": "UID of the destination group. Null selects the root."
      -                  },
      -                  "public": {
      -                    "description": "Set public-site publication visibility.",
      -                    "type": "boolean"
      -                  },
      -                  "publish_date": {
      -                    "description": "Publication timestamp. Null clears the configured date.",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "published_version": {
      -                    "anyOf": [
      -                      {
      -                        "anyOf": [
      -                          {
      -                            "type": "number"
      -                          },
      -                          {
      -                            "const": "current",
      -                            "type": "string"
      -                          }
      -                        ]
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ],
      -                    "description": "Revision to publish, current for the latest saved version, or null to clear the published revision."
      -                  },
      -                  "redirect_url": {
      -                    "description": "Public-site redirect destination. Null clears the redirect.",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "settings": {
      -                    "additionalProperties": false,
      -                    "description": "Document display settings.",
      -                    "properties": {
      -                      "content_width": {
      -                        "anyOf": [
      -                          {
      -                            "const": "default",
      -                            "type": "string"
      -                          },
      -                          {
      -                            "const": "wide",
      -                            "type": "string"
      -                          }
      -                        ],
      -                        "description": "Default or wide layout. Wide requires the corresponding Kaiten rollout."
      -                      }
      -                    },
      -                    "type": "object"
      -                  },
      -                  "slug": {
      -                    "description": "Public URL slug. Null clears the custom slug.",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "sort_order": {
      -                    "description": "Numeric position relative to other items in the parent group.",
      -                    "type": "number"
      -                  },
      -                  "title": {
      -                    "description": "Display title for this document or document group.",
      -                    "type": "string"
      -                  }
      -                },
      -                "type": "object"
      -              },
      -              "document_uid": {
      -                "description": "Document UID from list_documents. Use uid rather than the numeric id field.",
      -                "minLength": 1,
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "document_uid",
      -              "body"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "description": "Update content using an explicit ProseMirror schema. Get the current or newer supported schema with get_document_schema and pass its concrete version with the full validated tree. Kaiten saves schema and content together and rejects downgrades. Use the ordinary form to restore a backup.",
      -            "properties": {
      -              "body": {
      -                "additionalProperties": false,
      -                "description": "Document patch with a concrete schema_version and complete data. This form excludes backup_version.",
      -                "properties": {
      -                  "access": {
      -                    "anyOf": [
      -                      {
      -                        "const": "for_everyone",
      -                        "type": "string"
      -                      },
      -                      {
      -                        "const": "by_invite",
      -                        "type": "string"
      -                      }
      -                    ],
      -                    "description": "Use for_everyone for role-based general Kaiten access, or by_invite for explicitly invited users."
      -                  },
      -                  "data": {
      -                    "additionalProperties": false,
      -                    "description": "Replacement ProseMirror document tree with root type doc and a content array. Submit the full tree for the selected schema.",
      -                    "properties": {
      -                      "attrs": {
      -                        "additionalProperties": {
      -                          "$ref": "#/$defs/__schema1"
      -                        },
      -                        "description": "Root node attributes defined by Kaiten’s document schema.",
      -                        "propertyNames": {
      -                          "type": "string"
      -                        },
      -                        "type": "object"
      -                      },
      -                      "content": {
      -                        "description": "Ordered top-level nodes, which can nest content and contain schema-defined marks and attributes.",
      -                        "items": {
      -                          "$ref": "#/$defs/__schema0"
      -                        },
      -                        "type": "array"
      -                      },
      -                      "marks": {
      -                        "description": "Optional marks defined by the selected Kaiten document schema.",
      -                        "items": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "attrs": {
      -                              "additionalProperties": {
      -                                "$ref": "#/$defs/__schema1"
      -                              },
      -                              "propertyNames": {
      -                                "type": "string"
      -                              },
      -                              "type": "object"
      -                            },
      -                            "type": {
      -                              "minLength": 1,
      -                              "type": "string"
      -                            }
      -                          },
      -                          "required": [
      -                            "type"
      -                          ],
      -                          "type": "object"
      -                        },
      -                        "type": "array"
      -                      },
      -                      "text": {
      -                        "description": "Root text field where supported by the document schema.",
      -                        "type": "string"
      -                      },
      -                      "type": {
      -                        "const": "doc",
      -                        "description": "Root node type, doc.",
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "type",
      -                      "content"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "for_everyone_access_role_id": {
      -                    "description": "Role UID that applies when access is for_everyone.",
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "hidden_on_public_site": {
      -                    "description": "Hide this record from the public site when true.",
      -                    "type": "boolean"
      -                  },
      -                  "icon_color": {
      -                    "description": "Kaiten icon color code. Null clears it.",
      -                    "type": [
      -                      "number",
      -                      "null"
      -                    ]
      -                  },
      -                  "icon_type": {
      -                    "anyOf": [
      -                      {
      -                        "anyOf": [
      -                          {
      -                            "const": "material_icon",
      -                            "type": "string"
      -                          },
      -                          {
      -                            "const": "emoji",
      -                            "type": "string"
      -                          }
      -                        ]
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ],
      -                    "description": "Choice of icon representation. Null removes the configured type."
      -                  },
      -                  "icon_value": {
      -                    "description": "Identifier or value of the selected icon. Null clears it.",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "key": {
      -                    "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "notification_period_end": {
      -                    "description": "End timestamp of the notification window. Null clears it.",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "notification_period_start": {
      -                    "description": "Start timestamp of the notification window. Null clears it.",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "parent_entity_uid": {
      -                    "anyOf": [
      -                      {
      -                        "minLength": 1,
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ],
      -                    "description": "UID of the destination group. Null selects the root."
      -                  },
      -                  "public": {
      -                    "description": "Set public-site publication visibility.",
      -                    "type": "boolean"
      -                  },
      -                  "publish_date": {
      -                    "description": "Publication timestamp. Null clears the configured date.",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "published_version": {
      -                    "anyOf": [
      -                      {
      -                        "anyOf": [
      -                          {
      -                            "type": "number"
      -                          },
      -                          {
      -                            "const": "current",
      -                            "type": "string"
      -                          }
      -                        ]
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ],
      -                    "description": "Revision to publish, current for the latest saved version, or null to clear the published revision."
      -                  },
      -                  "redirect_url": {
      -                    "description": "Public-site redirect destination. Null clears the redirect.",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "schema_version": {
      -                    "description": "Concrete v<number> from get_document_schema, such as v28. Resolve latest before calling.",
      -                    "pattern": "^v[1-9][0-9]*$",
      -                    "type": "string"
      -                  },
      -                  "settings": {
      -                    "additionalProperties": false,
      -                    "description": "Document display settings.",
      -                    "properties": {
      -                      "content_width": {
      -                        "anyOf": [
      -                          {
      -                            "const": "default",
      -                            "type": "string"
      -                          },
      -                          {
      -                            "const": "wide",
      -                            "type": "string"
      -                          }
      -                        ],
      -                        "description": "Default or wide layout. Wide requires the corresponding Kaiten rollout."
      -                      }
      -                    },
      -                    "type": "object"
      -                  },
      -                  "slug": {
      -                    "description": "Public URL slug. Null clears the custom slug.",
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "sort_order": {
      -                    "description": "Numeric position relative to other items in the parent group.",
      -                    "type": "number"
      -                  },
      -                  "title": {
      -                    "description": "Display title for this document or document group.",
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "data",
      -                  "schema_version"
      -                ],
      -                "type": "object"
      -              },
      -              "document_uid": {
      -                "description": "Document UID from list_documents. Use uid rather than the numeric id field.",
      -                "minLength": 1,
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "document_uid",
      -              "body"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "operation": {
      -        "const": "update_document",
      -        "description": "Choose the update_document argument form matching your task.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "additionalProperties": false,
      -        "description": "Remove a document through Kaiten’s archive endpoint. It returns the archived document; this catalog has no restore operation.",
      -        "properties": {
      -          "document_uid": {
      -            "description": "Document UID from list_documents. Use uid rather than the numeric id field.",
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "document_uid"
      -        ],
      -        "type": "object"
      -      },
      -      "operation": {
      -        "const": "archive_document",
      -        "description": "Remove a document through Kaiten’s archive endpoint. It returns the archived document; this catalog has no restore operation.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "additionalProperties": false,
      -        "description": "Create a titled folder at the root or under an existing parent group. Verify that the token can create in that destination.",
      -        "properties": {
      -          "body": {
      -            "additionalProperties": false,
      -            "description": "New document folder title, parent, role and ordering.",
      -            "properties": {
      -              "for_everyone_access_role_id": {
      -                "anyOf": [
      -                  {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ],
      -                "description": "Role UID that applies when access is for_everyone."
      -              },
      -              "key": {
      -                "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "parent_entity_uid": {
      -                "anyOf": [
      -                  {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ],
      -                "description": "UID of the destination group. Null selects the root."
      -              },
      -              "sort_order": {
      -                "description": "Numeric position relative to other items in the parent group.",
      -                "type": "number"
      -              },
      -              "title": {
      -                "description": "Display title for this document or document group.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "title"
      -            ],
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "body"
      -        ],
      -        "type": "object"
      -      },
      -      "operation": {
      -        "const": "create_document_group",
      -        "description": "Create a titled folder at the root or under an existing parent group. Verify that the token can create in that destination.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "additionalProperties": false,
      -        "description": "Change an existing folder’s title, parent, order or access/public-site settings. If setting a homepage, choose a visible document inside this group’s tree.",
      -        "properties": {
      -          "body": {
      -            "additionalProperties": false,
      -            "description": "Folder patch. Include at least one of title, parent, sort order, access, hostname, key, icon type, public-site visibility, news feed or index document.",
      -            "properties": {
      -              "access": {
      -                "anyOf": [
      -                  {
      -                    "const": "for_everyone",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "const": "by_invite",
      -                    "type": "string"
      -                  }
      -                ],
      -                "description": "Use for_everyone for role-based general Kaiten access, or by_invite for explicitly invited users."
      -              },
      -              "for_everyone_access_role_id": {
      -                "anyOf": [
      -                  {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ],
      -                "description": "Role UID that applies when access is for_everyone."
      -              },
      -              "hidden_on_public_site": {
      -                "description": "Hide this record from the public site when true.",
      -                "type": "boolean"
      -              },
      -              "hostname": {
      -                "description": "Hostname for this group’s public site. Null clears it.",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "icon_color": {
      -                "description": "Kaiten icon color code. Null clears it.",
      -                "type": [
      -                  "number",
      -                  "null"
      -                ]
      -              },
      -              "icon_type": {
      -                "anyOf": [
      -                  {
      -                    "const": "material_icon",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ],
      -                "description": "Choice of icon representation. Null removes the configured type."
      -              },
      -              "icon_value": {
      -                "description": "Identifier or value of the selected icon. Null clears it.",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "index_document_uid": {
      -                "anyOf": [
      -                  {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ],
      -                "description": "Homepage document UID. Requires a configured hostname and a visible, unarchived document within this folder tree. Null clears it."
      -              },
      -              "key": {
      -                "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "news_feed": {
      -                "description": "Enable the public-site news feed for this group.",
      -                "type": "boolean"
      -              },
      -              "parent_entity_uid": {
      -                "anyOf": [
      -                  {
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ],
      -                "description": "UID of the destination group. Null selects the root."
      -              },
      -              "redirect_url": {
      -                "description": "Public-site redirect destination. Null clears the redirect.",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "sort_order": {
      -                "description": "Numeric position relative to other items in the parent group.",
      -                "type": "number"
      -              },
      -              "title": {
      -                "description": "Display title for this document or document group.",
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "document_group_uid": {
      -            "description": "Document group UID from list_document_groups. Use uid rather than the numeric id field.",
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "document_group_uid",
      -          "body"
      -        ],
      -        "type": "object"
      -      },
      -      "operation": {
      -        "const": "update_document_group",
      -        "description": "Change an existing folder’s title, parent, order or access/public-site settings. If setting a homepage, choose a visible document inside this group’s tree.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "additionalProperties": false,
      -        "description": "Remove a selected group through Kaiten; it returns the group with archived true. Inspect its child groups and documents first. This catalog exposes no restore operation.",
      -        "properties": {
      -          "document_group_uid": {
      -            "description": "Document group UID from list_document_groups. Use uid rather than the numeric id field.",
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "document_group_uid"
      -        ],
      -        "type": "object"
      -      },
      -      "operation": {
      -        "const": "archive_document_group",
      -        "description": "Remove a selected group through Kaiten; it returns the group with archived true. Inspect its child groups and documents first. This catalog exposes no restore operation.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "description": "Upload a restricted file attached to the card itself. Resolve its parent UUIDs first.",
      -            "properties": {
      -              "card_uid": {
      -                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "file": {
      -                "additionalProperties": false,
      -                "description": "Upload bytes in canonical padded base64, without a data URL or local path.",
      -                "properties": {
      -                  "data_base64": {
      -                    "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
      -                    "type": "string"
      -                  },
      -                  "filename": {
      -                    "description": "Filename to store in Kaiten. Defaults to file.",
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "mime_type": {
      -                    "description": "MIME type of the bytes. Defaults to application/octet-stream.",
      -                    "minLength": 1,
      -                    "pattern": "^[\\x20-\\x7e]+$",
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "data_base64"
      -                ],
      -                "type": "object"
      -              },
      -              "target": {
      -                "const": "card",
      -                "description": "Select a restricted file attached to the card itself.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "target",
      -              "card_uid",
      -              "file"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "description": "Upload a restricted file attached to a card comment. Resolve its parent UUIDs first.",
      -            "properties": {
      -              "card_uid": {
      -                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "comment_uid": {
      -                "description": "Parent comment UUID from collaboration_read list_comments with format full, or from the create response.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "file": {
      -                "additionalProperties": false,
      -                "description": "Upload bytes in canonical padded base64, without a data URL or local path.",
      -                "properties": {
      -                  "data_base64": {
      -                    "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
      -                    "type": "string"
      -                  },
      -                  "filename": {
      -                    "description": "Filename to store in Kaiten. Defaults to file.",
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "mime_type": {
      -                    "description": "MIME type of the bytes. Defaults to application/octet-stream.",
      -                    "minLength": 1,
      -                    "pattern": "^[\\x20-\\x7e]+$",
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "data_base64"
      -                ],
      -                "type": "object"
      -              },
      -              "target": {
      -                "const": "comment",
      -                "description": "Select a restricted file attached to a card comment.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "target",
      -              "card_uid",
      -              "comment_uid",
      -              "file"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "description": "Upload a restricted file attached to a card custom property. Resolve its parent UUIDs first.",
      -            "properties": {
      -              "card_uid": {
      -                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "file": {
      -                "additionalProperties": false,
      -                "description": "Upload bytes in canonical padded base64, without a data URL or local path.",
      -                "properties": {
      -                  "data_base64": {
      -                    "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
      -                    "type": "string"
      -                  },
      -                  "filename": {
      -                    "description": "Filename to store in Kaiten. Defaults to file.",
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "mime_type": {
      -                    "description": "MIME type of the bytes. Defaults to application/octet-stream.",
      -                    "minLength": 1,
      -                    "pattern": "^[\\x20-\\x7e]+$",
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "data_base64"
      -                ],
      -                "type": "object"
      -              },
      -              "property_uid": {
      -                "description": "Parent custom-property definition UUID. Resolve it with custom_properties_read.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "target": {
      -                "const": "property",
      -                "description": "Select a restricted file attached to a card custom property.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "target",
      -              "card_uid",
      -              "property_uid",
      -              "file"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "description": "Upload through the deprecated public route only for an integration that explicitly needs it and a Kaiten company that still permits it.",
      -            "properties": {
      -              "card_id": {
      -                "description": "Numeric card ID from cards_read. Use this with an existing legacy numeric-ID attachment.",
      -                "exclusiveMinimum": 0,
      -                "type": "integer"
      -              },
      -              "file": {
      -                "additionalProperties": false,
      -                "description": "Upload bytes in canonical padded base64, without a data URL or local path.",
      -                "properties": {
      -                  "data_base64": {
      -                    "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
      -                    "type": "string"
      -                  },
      -                  "filename": {
      -                    "description": "Filename to store in Kaiten. Defaults to file.",
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "mime_type": {
      -                    "description": "MIME type of the bytes. Defaults to application/octet-stream.",
      -                    "minLength": 1,
      -                    "pattern": "^[\\x20-\\x7e]+$",
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "data_base64"
      -                ],
      -                "type": "object"
      -              },
      -              "target": {
      -                "const": "legacy_card",
      -                "description": "Select a legacy file with a numeric card attachment ID.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "target",
      -              "card_id",
      -              "file"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "operation": {
      -        "const": "attach_file",
      -        "description": "Choose the attach_file argument form matching your task.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "description": "Rename or set the cover flag on a restricted file attached to the card itself. Omitted fields remain unchanged.",
      -            "properties": {
      -              "body": {
      -                "additionalProperties": false,
      -                "description": "Metadata patch containing at least one supported change.",
      -                "properties": {
      -                  "card_cover": {
      -                    "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
      -                    "type": "boolean"
      -                  },
      -                  "name": {
      -                    "description": "Replacement stored filename. Omit to keep the current name.",
      -                    "type": "string"
      -                  }
      -                },
      -                "type": "object"
      -              },
      -              "card_uid": {
      -                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "file_uid": {
      -                "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "target": {
      -                "const": "card",
      -                "description": "Select a restricted file attached to the card itself.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "target",
      -              "card_uid",
      -              "file_uid",
      -              "body"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "description": "Rename or set the cover flag on a restricted file attached to a card comment. Omitted fields remain unchanged.",
      -            "properties": {
      -              "body": {
      -                "additionalProperties": false,
      -                "description": "Metadata patch containing at least one supported change.",
      -                "properties": {
      -                  "card_cover": {
      -                    "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
      -                    "type": "boolean"
      -                  },
      -                  "name": {
      -                    "description": "Replacement stored filename. Omit to keep the current name.",
      -                    "type": "string"
      -                  }
      -                },
      -                "type": "object"
      -              },
      -              "card_uid": {
      -                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "comment_uid": {
      -                "description": "Parent comment UUID from collaboration_read list_comments with format full, or from the create response.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "file_uid": {
      -                "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "target": {
      -                "const": "comment",
      -                "description": "Select a restricted file attached to a card comment.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "target",
      -              "card_uid",
      -              "comment_uid",
      -              "file_uid",
      -              "body"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "description": "Rename or set the cover flag on a restricted file attached to a card custom property. Omitted fields remain unchanged.",
      -            "properties": {
      -              "body": {
      -                "additionalProperties": false,
      -                "description": "Metadata patch containing at least one supported change.",
      -                "properties": {
      -                  "card_cover": {
      -                    "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
      -                    "type": "boolean"
      -                  },
      -                  "name": {
      -                    "description": "Replacement stored filename. Omit to keep the current name.",
      -                    "type": "string"
      -                  }
      -                },
      -                "type": "object"
      -              },
      -              "card_uid": {
      -                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "file_uid": {
      -                "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "property_uid": {
      -                "description": "Parent custom-property definition UUID. Resolve it with custom_properties_read.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "target": {
      -                "const": "property",
      -                "description": "Select a restricted file attached to a card custom property.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "target",
      -              "card_uid",
      -              "property_uid",
      -              "file_uid",
      -              "body"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "description": "Set or clear the cover flag of an existing legacy card attachment.",
      -            "properties": {
      -              "body": {
      -                "additionalProperties": false,
      -                "description": "Metadata patch containing at least one supported change.",
      -                "properties": {
      -                  "card_cover": {
      -                    "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
      -                    "type": "boolean"
      -                  }
      -                },
      -                "type": "object"
      -              },
      -              "card_id": {
      -                "description": "Numeric card ID from cards_read. Use this with an existing legacy numeric-ID attachment.",
      -                "exclusiveMinimum": 0,
      -                "type": "integer"
      -              },
      -              "file_id": {
      -                "description": "Legacy numeric attachment ID found on the card.",
      -                "exclusiveMinimum": 0,
      -                "type": "integer"
      -              },
      -              "target": {
      -                "const": "legacy_card",
      -                "description": "Select a legacy file with a numeric card attachment ID.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "target",
      -              "card_id",
      -              "file_id",
      -              "body"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "operation": {
      -        "const": "update_attachment",
      -        "description": "Choose the update_attachment argument form matching your task.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "description": "Remove a restricted file attached to the card itself from its parent. There is no attachment restore operation.",
      -            "properties": {
      -              "card_uid": {
      -                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "file_uid": {
      -                "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "target": {
      -                "const": "card",
      -                "description": "Select a restricted file attached to the card itself.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "target",
      -              "card_uid",
      -              "file_uid"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "description": "Remove a restricted file attached to a card comment from its parent. There is no attachment restore operation.",
      -            "properties": {
      -              "card_uid": {
      -                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "comment_uid": {
      -                "description": "Parent comment UUID from collaboration_read list_comments with format full, or from the create response.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "file_uid": {
      -                "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "target": {
      -                "const": "comment",
      -                "description": "Select a restricted file attached to a card comment.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "target",
      -              "card_uid",
      -              "comment_uid",
      -              "file_uid"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "description": "Remove a restricted file attached to a card custom property from its parent. There is no attachment restore operation.",
      -            "properties": {
      -              "card_uid": {
      -                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "file_uid": {
      -                "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "property_uid": {
      -                "description": "Parent custom-property definition UUID. Resolve it with custom_properties_read.",
      -                "format": "uuid",
      -                "type": "string"
      -              },
      -              "target": {
      -                "const": "property",
      -                "description": "Select a restricted file attached to a card custom property.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "target",
      -              "card_uid",
      -              "property_uid",
      -              "file_uid"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "description": "Remove a legacy file with a numeric card attachment ID from its parent. There is no attachment restore operation.",
      -            "properties": {
      -              "card_id": {
      -                "description": "Numeric card ID from cards_read. Use this with an existing legacy numeric-ID attachment.",
      -                "exclusiveMinimum": 0,
      -                "type": "integer"
      -              },
      -              "file_id": {
      -                "description": "Legacy numeric attachment ID found on the card.",
      -                "exclusiveMinimum": 0,
      -                "type": "integer"
      -              },
      -              "target": {
      -                "const": "legacy_card",
      -                "description": "Select a legacy file with a numeric card attachment ID.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "target",
      -              "card_id",
      -              "file_id"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "operation": {
      -        "const": "delete_attachment",
      -        "description": "Choose the delete_attachment argument form matching your task.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "args"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "args": {
      +        "additionalProperties": false,
      +        "description": "Create a new document at the given sort position. Supply a group UID for a nested document or clone_uid to copy an accessible document. Use update_document to set content.",
      +        "properties": {
      +          "body": {
      +            "additionalProperties": false,
      +            "description": "New document placement and metadata, with optional source document for cloning.",
      +            "properties": {
      +              "clone_uid": {
      +                "description": "UID of the existing document to copy.",
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "clone_version": {
      +                "description": "Numeric source document revision to copy when using clone_uid.",
      +                "type": "number"
      +              },
      +              "for_everyone_access_role_id": {
      +                "description": "Role UID that applies when access is for_everyone.",
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "key": {
      +                "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "parent_entity_uid": {
      +                "anyOf": [
      +                  {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "UID of the destination group. Null selects the root."
      +              },
      +              "sort_order": {
      +                "description": "Numeric position relative to other items in the parent group.",
      +                "type": "number"
      +              },
      +              "title": {
      +                "description": "Display title for this document or document group.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "sort_order"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "body"
      +        ],
      +        "type": "object"
      +      },
      +      "operation": {
      +        "const": "create_document",
      +        "description": "Create a new document at the given sort position. Supply a group UID for a nested document or clone_uid to copy an accessible document. Use update_document to set content.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "args": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "description": "Patch metadata, restore a backup, or edit content using the document’s current schema. Fetch get_document_schema before submitting the complete ProseMirror tree. Review audience and revision before publishing.",
      +            "properties": {
      +              "body": {
      +                "additionalProperties": false,
      +                "description": "Document patch. Omitted fields retain their values; explicit null only clears nullable fields.",
      +                "properties": {
      +                  "access": {
      +                    "anyOf": [
      +                      {
      +                        "const": "for_everyone",
      +                        "type": "string"
      +                      },
      +                      {
      +                        "const": "by_invite",
      +                        "type": "string"
      +                      }
      +                    ],
      +                    "description": "Use for_everyone for role-based general Kaiten access, or by_invite for explicitly invited users."
      +                  },
      +                  "backup_version": {
      +                    "description": "Version of the document backup to restore.",
      +                    "type": "number"
      +                  },
      +                  "data": {
      +                    "additionalProperties": false,
      +                    "description": "Replacement ProseMirror document tree with root type doc and a content array. Submit the full tree for the selected schema.",
      +                    "properties": {
      +                      "attrs": {
      +                        "additionalProperties": {
      +                          "$ref": "#/$defs/__schema1"
      +                        },
      +                        "description": "Root node attributes defined by Kaiten’s document schema.",
      +                        "propertyNames": {
      +                          "type": "string"
      +                        },
      +                        "type": "object"
      +                      },
      +                      "content": {
      +                        "description": "Ordered top-level nodes, which can nest content and contain schema-defined marks and attributes.",
      +                        "items": {
      +                          "$ref": "#/$defs/__schema0"
      +                        },
      +                        "type": "array"
      +                      },
      +                      "marks": {
      +                        "description": "Optional marks defined by the selected Kaiten document schema.",
      +                        "items": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "attrs": {
      +                              "additionalProperties": {
      +                                "$ref": "#/$defs/__schema1"
      +                              },
      +                              "propertyNames": {
      +                                "type": "string"
      +                              },
      +                              "type": "object"
      +                            },
      +                            "type": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            }
      +                          },
      +                          "required": [
      +                            "type"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "type": "array"
      +                      },
      +                      "text": {
      +                        "description": "Root text field where supported by the document schema.",
      +                        "type": "string"
      +                      },
      +                      "type": {
      +                        "const": "doc",
      +                        "description": "Root node type, doc.",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "type",
      +                      "content"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "for_everyone_access_role_id": {
      +                    "description": "Role UID that applies when access is for_everyone.",
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "hidden_on_public_site": {
      +                    "description": "Hide this record from the public site when true.",
      +                    "type": "boolean"
      +                  },
      +                  "icon_color": {
      +                    "description": "Kaiten icon color code. Null clears it.",
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "icon_type": {
      +                    "anyOf": [
      +                      {
      +                        "anyOf": [
      +                          {
      +                            "const": "material_icon",
      +                            "type": "string"
      +                          },
      +                          {
      +                            "const": "emoji",
      +                            "type": "string"
      +                          }
      +                        ]
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Choice of icon representation. Null removes the configured type."
      +                  },
      +                  "icon_value": {
      +                    "description": "Identifier or value of the selected icon. Null clears it.",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "key": {
      +                    "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "notification_period_end": {
      +                    "description": "End timestamp of the notification window. Null clears it.",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "notification_period_start": {
      +                    "description": "Start timestamp of the notification window. Null clears it.",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "parent_entity_uid": {
      +                    "anyOf": [
      +                      {
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "UID of the destination group. Null selects the root."
      +                  },
      +                  "public": {
      +                    "description": "Set public-site publication visibility.",
      +                    "type": "boolean"
      +                  },
      +                  "publish_date": {
      +                    "description": "Publication timestamp. Null clears the configured date.",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "published_version": {
      +                    "anyOf": [
      +                      {
      +                        "anyOf": [
      +                          {
      +                            "type": "number"
      +                          },
      +                          {
      +                            "const": "current",
      +                            "type": "string"
      +                          }
      +                        ]
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Pass a revision number to publish that revision. Use current or null to publish the current revision."
      +                  },
      +                  "redirect_url": {
      +                    "description": "Public-site redirect destination. Null clears the redirect.",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "settings": {
      +                    "additionalProperties": false,
      +                    "description": "Document display settings.",
      +                    "properties": {
      +                      "content_width": {
      +                        "anyOf": [
      +                          {
      +                            "const": "default",
      +                            "type": "string"
      +                          },
      +                          {
      +                            "const": "wide",
      +                            "type": "string"
      +                          }
      +                        ],
      +                        "description": "Default or wide layout. Wide requires the corresponding Kaiten rollout."
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "slug": {
      +                    "description": "Public URL slug. Null clears the custom slug.",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "sort_order": {
      +                    "description": "Numeric position relative to other items in the parent group.",
      +                    "type": "number"
      +                  },
      +                  "title": {
      +                    "description": "Display title for this document or document group.",
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "document_uid": {
      +                "description": "Document UID from list_documents. Use uid rather than the numeric id field.",
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "document_uid",
      +              "body"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "description": "Save a complete ProseMirror tree with its schema. Resolve the current or a newer schema using get_document_schema, then pass result.version as body.schema_version. Kaiten validates the tree as supplied and saves schema and content together.",
      +            "properties": {
      +              "body": {
      +                "additionalProperties": false,
      +                "description": "Document patch with a concrete schema_version and complete data. This form excludes backup_version.",
      +                "properties": {
      +                  "access": {
      +                    "anyOf": [
      +                      {
      +                        "const": "for_everyone",
      +                        "type": "string"
      +                      },
      +                      {
      +                        "const": "by_invite",
      +                        "type": "string"
      +                      }
      +                    ],
      +                    "description": "Use for_everyone for role-based general Kaiten access, or by_invite for explicitly invited users."
      +                  },
      +                  "data": {
      +                    "additionalProperties": false,
      +                    "description": "Replacement ProseMirror document tree with root type doc and a content array. Submit the full tree for the selected schema.",
      +                    "properties": {
      +                      "attrs": {
      +                        "additionalProperties": {
      +                          "$ref": "#/$defs/__schema1"
      +                        },
      +                        "description": "Root node attributes defined by Kaiten’s document schema.",
      +                        "propertyNames": {
      +                          "type": "string"
      +                        },
      +                        "type": "object"
      +                      },
      +                      "content": {
      +                        "description": "Ordered top-level nodes, which can nest content and contain schema-defined marks and attributes.",
      +                        "items": {
      +                          "$ref": "#/$defs/__schema0"
      +                        },
      +                        "type": "array"
      +                      },
      +                      "marks": {
      +                        "description": "Optional marks defined by the selected Kaiten document schema.",
      +                        "items": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "attrs": {
      +                              "additionalProperties": {
      +                                "$ref": "#/$defs/__schema1"
      +                              },
      +                              "propertyNames": {
      +                                "type": "string"
      +                              },
      +                              "type": "object"
      +                            },
      +                            "type": {
      +                              "minLength": 1,
      +                              "type": "string"
      +                            }
      +                          },
      +                          "required": [
      +                            "type"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "type": "array"
      +                      },
      +                      "text": {
      +                        "description": "Root text field where supported by the document schema.",
      +                        "type": "string"
      +                      },
      +                      "type": {
      +                        "const": "doc",
      +                        "description": "Root node type, doc.",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "type",
      +                      "content"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "for_everyone_access_role_id": {
      +                    "description": "Role UID that applies when access is for_everyone.",
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "hidden_on_public_site": {
      +                    "description": "Hide this record from the public site when true.",
      +                    "type": "boolean"
      +                  },
      +                  "icon_color": {
      +                    "description": "Kaiten icon color code. Null clears it.",
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "icon_type": {
      +                    "anyOf": [
      +                      {
      +                        "anyOf": [
      +                          {
      +                            "const": "material_icon",
      +                            "type": "string"
      +                          },
      +                          {
      +                            "const": "emoji",
      +                            "type": "string"
      +                          }
      +                        ]
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Choice of icon representation. Null removes the configured type."
      +                  },
      +                  "icon_value": {
      +                    "description": "Identifier or value of the selected icon. Null clears it.",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "key": {
      +                    "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "notification_period_end": {
      +                    "description": "End timestamp of the notification window. Null clears it.",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "notification_period_start": {
      +                    "description": "Start timestamp of the notification window. Null clears it.",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "parent_entity_uid": {
      +                    "anyOf": [
      +                      {
      +                        "minLength": 1,
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "UID of the destination group. Null selects the root."
      +                  },
      +                  "public": {
      +                    "description": "Set public-site publication visibility.",
      +                    "type": "boolean"
      +                  },
      +                  "publish_date": {
      +                    "description": "Publication timestamp. Null clears the configured date.",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "published_version": {
      +                    "anyOf": [
      +                      {
      +                        "anyOf": [
      +                          {
      +                            "type": "number"
      +                          },
      +                          {
      +                            "const": "current",
      +                            "type": "string"
      +                          }
      +                        ]
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Pass a revision number to publish that revision. Use current or null to publish the current revision."
      +                  },
      +                  "redirect_url": {
      +                    "description": "Public-site redirect destination. Null clears the redirect.",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "schema_version": {
      +                    "description": "Use result.version from get_document_schema, for example v28. If you queried latest, use the returned concrete version. Include the full body.data tree and omit body.backup_version.",
      +                    "pattern": "^v[1-9][0-9]*$",
      +                    "type": "string"
      +                  },
      +                  "settings": {
      +                    "additionalProperties": false,
      +                    "description": "Document display settings.",
      +                    "properties": {
      +                      "content_width": {
      +                        "anyOf": [
      +                          {
      +                            "const": "default",
      +                            "type": "string"
      +                          },
      +                          {
      +                            "const": "wide",
      +                            "type": "string"
      +                          }
      +                        ],
      +                        "description": "Default or wide layout. Wide requires the corresponding Kaiten rollout."
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "slug": {
      +                    "description": "Public URL slug. Null clears the custom slug.",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "sort_order": {
      +                    "description": "Numeric position relative to other items in the parent group.",
      +                    "type": "number"
      +                  },
      +                  "title": {
      +                    "description": "Display title for this document or document group.",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "data",
      +                  "schema_version"
      +                ],
      +                "type": "object"
      +              },
      +              "document_uid": {
      +                "description": "Document UID from list_documents. Use uid rather than the numeric id field.",
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "document_uid",
      +              "body"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "operation": {
      +        "const": "update_document",
      +        "description": "Choose the update_document argument form matching your task.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "args": {
      +        "additionalProperties": false,
      +        "description": "Remove a document through Kaiten’s archive endpoint. It returns the archived document; this catalog has no restore operation.",
      +        "properties": {
      +          "document_uid": {
      +            "description": "Document UID from list_documents. Use uid rather than the numeric id field.",
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "document_uid"
      +        ],
      +        "type": "object"
      +      },
      +      "operation": {
      +        "const": "archive_document",
      +        "description": "Remove a document through Kaiten’s archive endpoint. It returns the archived document; this catalog has no restore operation.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "args": {
      +        "additionalProperties": false,
      +        "description": "Create a titled folder at the root or under an existing parent group. Verify that the token can create in that destination.",
      +        "properties": {
      +          "body": {
      +            "additionalProperties": false,
      +            "description": "New document folder title, parent, role and ordering.",
      +            "properties": {
      +              "for_everyone_access_role_id": {
      +                "anyOf": [
      +                  {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Role UID that applies when access is for_everyone."
      +              },
      +              "key": {
      +                "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "parent_entity_uid": {
      +                "anyOf": [
      +                  {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "UID of the destination group. Null selects the root."
      +              },
      +              "sort_order": {
      +                "description": "Numeric position relative to other items in the parent group.",
      +                "type": "number"
      +              },
      +              "title": {
      +                "description": "Display title for this document or document group.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "title"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "body"
      +        ],
      +        "type": "object"
      +      },
      +      "operation": {
      +        "const": "create_document_group",
      +        "description": "Create a titled folder at the root or under an existing parent group. Verify that the token can create in that destination.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "args": {
      +        "additionalProperties": false,
      +        "description": "Change an existing folder’s title, parent, order or access/public-site settings. If setting a homepage, choose a visible document inside this group’s tree.",
      +        "properties": {
      +          "body": {
      +            "additionalProperties": false,
      +            "description": "Folder patch. Include at least one of title, parent, sort order, access, hostname, key, icon type, public-site visibility, news feed or index document.",
      +            "properties": {
      +              "access": {
      +                "anyOf": [
      +                  {
      +                    "const": "for_everyone",
      +                    "type": "string"
      +                  },
      +                  {
      +                    "const": "by_invite",
      +                    "type": "string"
      +                  }
      +                ],
      +                "description": "Use for_everyone for role-based general Kaiten access, or by_invite for explicitly invited users."
      +              },
      +              "for_everyone_access_role_id": {
      +                "anyOf": [
      +                  {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Role UID that applies when access is for_everyone."
      +              },
      +              "hidden_on_public_site": {
      +                "description": "Hide this record from the public site when true.",
      +                "type": "boolean"
      +              },
      +              "hostname": {
      +                "description": "Hostname for this group’s public site. Null clears it.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "icon_color": {
      +                "description": "Kaiten icon color code. Null clears it.",
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "icon_type": {
      +                "anyOf": [
      +                  {
      +                    "const": "material_icon",
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Choice of icon representation. Null removes the configured type."
      +              },
      +              "icon_value": {
      +                "description": "Identifier or value of the selected icon. Null clears it.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "index_document_uid": {
      +                "anyOf": [
      +                  {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Homepage document UID. Requires a configured hostname and a visible, unarchived document within this folder tree. Null clears it."
      +              },
      +              "key": {
      +                "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "news_feed": {
      +                "description": "Enable the public-site news feed for this group.",
      +                "type": "boolean"
      +              },
      +              "parent_entity_uid": {
      +                "anyOf": [
      +                  {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "UID of the destination group. Null selects the root."
      +              },
      +              "redirect_url": {
      +                "description": "Public-site redirect destination. Null clears the redirect.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "sort_order": {
      +                "description": "Numeric position relative to other items in the parent group.",
      +                "type": "number"
      +              },
      +              "title": {
      +                "description": "Display title for this document or document group.",
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "document_group_uid": {
      +            "description": "Document group UID from list_document_groups. Use uid rather than the numeric id field.",
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "document_group_uid",
      +          "body"
      +        ],
      +        "type": "object"
      +      },
      +      "operation": {
      +        "const": "update_document_group",
      +        "description": "Change an existing folder’s title, parent, order or access/public-site settings. If setting a homepage, choose a visible document inside this group’s tree.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "args": {
      +        "additionalProperties": false,
      +        "description": "Remove a selected group through Kaiten; it returns the group with archived true. Inspect its child groups and documents first. This catalog exposes no restore operation.",
      +        "properties": {
      +          "document_group_uid": {
      +            "description": "Document group UID from list_document_groups. Use uid rather than the numeric id field.",
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "document_group_uid"
      +        ],
      +        "type": "object"
      +      },
      +      "operation": {
      +        "const": "archive_document_group",
      +        "description": "Remove a selected group through Kaiten; it returns the group with archived true. Inspect its child groups and documents first. This catalog exposes no restore operation.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "args": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "description": "Upload a restricted file attached to the card itself. Resolve the required parent UUIDs first and reuse the returned attachment ID for later updates or deletion.",
      +            "properties": {
      +              "card_uid": {
      +                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "file": {
      +                "additionalProperties": false,
      +                "description": "Place canonical padded base64 in data_base64, for example SGk= for two bytes. Omit any data URL prefix. The decoded size is capped by KAITEN_MAX_FILE_BYTES.",
      +                "properties": {
      +                  "data_base64": {
      +                    "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
      +                    "type": "string"
      +                  },
      +                  "filename": {
      +                    "description": "Filename to store in Kaiten. Defaults to file.",
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "mime_type": {
      +                    "description": "MIME type of the bytes. Defaults to application/octet-stream.",
      +                    "minLength": 1,
      +                    "pattern": "^[\\x20-\\x7e]+$",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "data_base64"
      +                ],
      +                "type": "object"
      +              },
      +              "target": {
      +                "const": "card",
      +                "description": "Select a restricted file attached to the card itself.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "target",
      +              "card_uid",
      +              "file"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "description": "Upload a restricted file attached to a card comment. Resolve the required parent UUIDs first and reuse the returned attachment ID for later updates or deletion.",
      +            "properties": {
      +              "card_uid": {
      +                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "comment_uid": {
      +                "description": "Parent comment UUID from collaboration_read list_comments with format full, or from the create response.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "file": {
      +                "additionalProperties": false,
      +                "description": "Place canonical padded base64 in data_base64, for example SGk= for two bytes. Omit any data URL prefix. The decoded size is capped by KAITEN_MAX_FILE_BYTES.",
      +                "properties": {
      +                  "data_base64": {
      +                    "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
      +                    "type": "string"
      +                  },
      +                  "filename": {
      +                    "description": "Filename to store in Kaiten. Defaults to file.",
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "mime_type": {
      +                    "description": "MIME type of the bytes. Defaults to application/octet-stream.",
      +                    "minLength": 1,
      +                    "pattern": "^[\\x20-\\x7e]+$",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "data_base64"
      +                ],
      +                "type": "object"
      +              },
      +              "target": {
      +                "const": "comment",
      +                "description": "Select a restricted file attached to a card comment.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "target",
      +              "card_uid",
      +              "comment_uid",
      +              "file"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "description": "Upload a restricted file attached to a card custom property. Resolve the required parent UUIDs first and reuse the returned attachment ID for later updates or deletion.",
      +            "properties": {
      +              "card_uid": {
      +                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "file": {
      +                "additionalProperties": false,
      +                "description": "Place canonical padded base64 in data_base64, for example SGk= for two bytes. Omit any data URL prefix. The decoded size is capped by KAITEN_MAX_FILE_BYTES.",
      +                "properties": {
      +                  "data_base64": {
      +                    "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
      +                    "type": "string"
      +                  },
      +                  "filename": {
      +                    "description": "Filename to store in Kaiten. Defaults to file.",
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "mime_type": {
      +                    "description": "MIME type of the bytes. Defaults to application/octet-stream.",
      +                    "minLength": 1,
      +                    "pattern": "^[\\x20-\\x7e]+$",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "data_base64"
      +                ],
      +                "type": "object"
      +              },
      +              "property_uid": {
      +                "description": "Parent custom-property definition UUID. Resolve it with custom_properties_read.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "target": {
      +                "const": "property",
      +                "description": "Select a restricted file attached to a card custom property.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "target",
      +              "card_uid",
      +              "property_uid",
      +              "file"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "description": "Use numeric card_id for a deprecated upload only when the Kaiten company still permits it. New uploads should use a restricted UUID route.",
      +            "properties": {
      +              "card_id": {
      +                "description": "Numeric card ID from cards_read. Use this with an existing legacy numeric-ID attachment.",
      +                "exclusiveMinimum": 0,
      +                "type": "integer"
      +              },
      +              "file": {
      +                "additionalProperties": false,
      +                "description": "Place canonical padded base64 in data_base64, for example SGk= for two bytes. Omit any data URL prefix. The decoded size is capped by KAITEN_MAX_FILE_BYTES.",
      +                "properties": {
      +                  "data_base64": {
      +                    "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
      +                    "type": "string"
      +                  },
      +                  "filename": {
      +                    "description": "Filename to store in Kaiten. Defaults to file.",
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "mime_type": {
      +                    "description": "MIME type of the bytes. Defaults to application/octet-stream.",
      +                    "minLength": 1,
      +                    "pattern": "^[\\x20-\\x7e]+$",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "data_base64"
      +                ],
      +                "type": "object"
      +              },
      +              "target": {
      +                "const": "legacy_card",
      +                "description": "Select a legacy file with a numeric card attachment ID.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "target",
      +              "card_id",
      +              "file"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "operation": {
      +        "const": "attach_file",
      +        "description": "Choose the attach_file argument form matching your task.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "args": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "description": "Rename or set the cover flag on a restricted file attached to the card itself. Omitted fields remain unchanged.",
      +            "properties": {
      +              "body": {
      +                "additionalProperties": false,
      +                "description": "Metadata patch containing at least one supported change.",
      +                "properties": {
      +                  "card_cover": {
      +                    "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
      +                    "type": "boolean"
      +                  },
      +                  "name": {
      +                    "description": "Replacement stored filename. Omit to keep the current name.",
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "card_uid": {
      +                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "file_uid": {
      +                "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "target": {
      +                "const": "card",
      +                "description": "Select a restricted file attached to the card itself.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "target",
      +              "card_uid",
      +              "file_uid",
      +              "body"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "description": "Rename or set the cover flag on a restricted file attached to a card comment. Omitted fields remain unchanged.",
      +            "properties": {
      +              "body": {
      +                "additionalProperties": false,
      +                "description": "Metadata patch containing at least one supported change.",
      +                "properties": {
      +                  "card_cover": {
      +                    "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
      +                    "type": "boolean"
      +                  },
      +                  "name": {
      +                    "description": "Replacement stored filename. Omit to keep the current name.",
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "card_uid": {
      +                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "comment_uid": {
      +                "description": "Parent comment UUID from collaboration_read list_comments with format full, or from the create response.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "file_uid": {
      +                "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "target": {
      +                "const": "comment",
      +                "description": "Select a restricted file attached to a card comment.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "target",
      +              "card_uid",
      +              "comment_uid",
      +              "file_uid",
      +              "body"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "description": "Rename or set the cover flag on a restricted file attached to a card custom property. Omitted fields remain unchanged.",
      +            "properties": {
      +              "body": {
      +                "additionalProperties": false,
      +                "description": "Metadata patch containing at least one supported change.",
      +                "properties": {
      +                  "card_cover": {
      +                    "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
      +                    "type": "boolean"
      +                  },
      +                  "name": {
      +                    "description": "Replacement stored filename. Omit to keep the current name.",
      +                    "type": "string"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "card_uid": {
      +                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "file_uid": {
      +                "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "property_uid": {
      +                "description": "Parent custom-property definition UUID. Resolve it with custom_properties_read.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "target": {
      +                "const": "property",
      +                "description": "Select a restricted file attached to a card custom property.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "target",
      +              "card_uid",
      +              "property_uid",
      +              "file_uid",
      +              "body"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "description": "Set or clear the cover flag of an existing legacy card attachment.",
      +            "properties": {
      +              "body": {
      +                "additionalProperties": false,
      +                "description": "Metadata patch containing at least one supported change.",
      +                "properties": {
      +                  "card_cover": {
      +                    "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
      +                    "type": "boolean"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "card_id": {
      +                "description": "Numeric card ID from cards_read. Use this with an existing legacy numeric-ID attachment.",
      +                "exclusiveMinimum": 0,
      +                "type": "integer"
      +              },
      +              "file_id": {
      +                "description": "Legacy numeric attachment ID found on the card.",
      +                "exclusiveMinimum": 0,
      +                "type": "integer"
      +              },
      +              "target": {
      +                "const": "legacy_card",
      +                "description": "Select a legacy file with a numeric card attachment ID.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "target",
      +              "card_id",
      +              "file_id",
      +              "body"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "operation": {
      +        "const": "update_attachment",
      +        "description": "Choose the update_attachment argument form matching your task.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "args": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "description": "Remove a restricted file attached to the card itself from its parent. There is no attachment restore operation.",
      +            "properties": {
      +              "card_uid": {
      +                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "file_uid": {
      +                "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "target": {
      +                "const": "card",
      +                "description": "Select a restricted file attached to the card itself.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "target",
      +              "card_uid",
      +              "file_uid"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "description": "Remove a restricted file attached to a card comment from its parent. There is no attachment restore operation.",
      +            "properties": {
      +              "card_uid": {
      +                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "comment_uid": {
      +                "description": "Parent comment UUID from collaboration_read list_comments with format full, or from the create response.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "file_uid": {
      +                "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "target": {
      +                "const": "comment",
      +                "description": "Select a restricted file attached to a card comment.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "target",
      +              "card_uid",
      +              "comment_uid",
      +              "file_uid"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "description": "Remove a restricted file attached to a card custom property from its parent. There is no attachment restore operation.",
      +            "properties": {
      +              "card_uid": {
      +                "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "file_uid": {
      +                "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "property_uid": {
      +                "description": "Parent custom-property definition UUID. Resolve it with custom_properties_read.",
      +                "format": "uuid",
      +                "type": "string"
      +              },
      +              "target": {
      +                "const": "property",
      +                "description": "Select a restricted file attached to a card custom property.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "target",
      +              "card_uid",
      +              "property_uid",
      +              "file_uid"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "description": "Remove a legacy file with a numeric card attachment ID from its parent. There is no attachment restore operation.",
      +            "properties": {
      +              "card_id": {
      +                "description": "Numeric card ID from cards_read. Use this with an existing legacy numeric-ID attachment.",
      +                "exclusiveMinimum": 0,
      +                "type": "integer"
      +              },
      +              "file_id": {
      +                "description": "Legacy numeric attachment ID found on the card.",
      +                "exclusiveMinimum": 0,
      +                "type": "integer"
      +              },
      +              "target": {
      +                "const": "legacy_card",
      +                "description": "Select a legacy file with a numeric card attachment ID.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "target",
      +              "card_id",
      +              "file_id"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "operation": {
      +        "const": "delete_attachment",
      +        "description": "Choose the delete_attachment argument form matching your task.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "args"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Addedv3.0.0

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructive=true and openWorld=true, but the description adds materially: Kaiten enforces entity and parent permissions, restricted files inherit parent access, deleted attachments cannot be restored, and an agent should read back after timeouts before retrying a non-idempotent call. The deprecated legacy path is also disclosed as conditional on company configuration.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded purpose followed by routing, parameter rules, and safety notes in a logical order, with no filler sentences. Slight redundancy with schema-level docs (base64 padding and data-URL prefix rules are already in file.data_base64) keeps it from a perfect score.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a large multi-operation union covering document CRUD, folders, and four attachment targets, the description covers lifecycle, ID resolution, permissions, deprecation, and retry safety. Return values are handled by the existing output schema, so no gap remains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the per-branch field docs are extensive, so the baseline is 3; the description earns above that by stating cross-field relationships the schema cannot express — pair comment_uid/property_uid with card_uid, edit or delete by file_uid, base64 must be padded, and omit backup_version when sending schema_version with the entire ProseMirror body.data.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with concrete verbs and resources: "Create, edit, move, publish or archive Kaiten documents and folders. Attach, rename, set covers or delete files." It immediately scopes the tool against siblings by naming kaiten_cards_write for card fields, so an agent can route without inspecting the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing rules: use kaiten_cards_write for card fields and placement, resolve IDs with kaiten_content_read, use card_uid for restricted targets with comment_uid/property_uid matching the parent, and reserve target=legacy_card for existing legacy files or explicitly enabled deprecated uploads. It also gives a when-to-use condition for the schema-version path ("For a schema change, send a concrete body.schema_version").

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.