Replace a document's content
claix.document.replaceReplace the content of a persisted document with another document's content (POST /replace-document). Body: document_id (kept) and new_content_document_id (source, deleted after copy). Records a swap, bumps version, and returns swap_id, version, and swaps_count. Free call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | API key secreta de Claix. Ejemplo: claix_sk_abc123.... Opcional si la conexión MCP envía x-api-key en cabecera HTTP (recomendado en Smithery/Cursor). | |
| document_id | Yes | UUID del documento persistido (document_id de una extracción con window_context). Ejemplo: 3c7a9f21-4b8e-4d1a-9c6f-2e0d8a5b7c4f. | |
| new_content_document_id | Yes | UUID of the source document whose file_name and markdown_content will be copied onto document_id. Deleted after a successful replace. Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | JSON payload from the Claix API (extracted records, schema list, or Excel export metadata). | |
| error | No | Human-readable error message when success is false. | |
| success | Yes | True when Claix returned a successful response. False when isError is set on the tool result. |