Update Claix schema
claix.schemas.updateUpdate a Claix schema (PUT /api/update-schema/{schema_id}). Same body as create: name, type, schema_definition; optional Agent mode, window_context (Guardar Datos), source verification. Replaces the full configuration. Free call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable schema name. Example: Facturas HTML. | |
| type | Yes | Schema type matching an extraction endpoint. Example: txt-json, pdf-json. | |
| 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). | |
| schema_id | Yes | UUID del schema creado en el dashboard de Claix. Ejemplo: 550e8400-e29b-41d4-a716-446655440000. Llama a claix.schemas.list primero si no lo conoces. | |
| is_agent_mode | No | Set true to enable Agent mode. json-excel cannot use Agent mode. | |
| resumen_agent | No | Optional Agent-mode instruction, max 500 characters. | |
| cita_por_campo | No | Enables source verification: each extracted field (and agent_data) is returned as {value, source} instead of a bare value. Defaults to false. | |
| window_context | No | Guardar Datos / Save Data. When true, JSON extractions insert a mapped row into the connected DB (needs connection + mapping rules). Default false. | |
| agent_definition | No | Required if is_agent_mode is true. Types: boolean, string, closed, integer. closed requires options[]. | |
| schema_definition | Yes | Output fields. Each key is a JSON property; each value is { type: "string"|"integer"|"number"|"boolean", description: "..." }. |
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. |