Ask a knowledge space (cross-document context)
claix.space_context.askAsk up to 5 questions across every document grouped in a knowledge space (POST /space-context/{space_id}). Same input and output as claix.window_context.ask, but the answer is built by cross-referencing all the documents in the space instead of a single one, so use it to compare, add up, or reconcile data spread over several files. Requires space_id, the same one passed as the optional space_id when extracting. Each question max 400 characters. Returns user_ask, ia_response, and log_id (null if the answer is in none of the documents). If the API-key owner has verif_space, each ia_response item is {value, source} naming document_id and file_name.
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). | |
| space_id | Yes | UUID del espacio de conocimiento. Es el mismo valor que se envía como space_id opcional al extraer para agrupar documentos, y el que devuelve claix.spaces.create. Ejemplo: 5b9e2c14-7d3a-4f8b-9e1c-6a0d4b8f2e7c. | |
| questions | Yes | Questions to answer by cross-referencing every document in the space. Max 5 per call, 400 characters each. Example: ["¿Qué proveedor factura más sumando todas las facturas?"] |
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. |