# questionDocument

**Identifier:** `mistraldocuments_questionDocument`

**Provider:** [Mistral Document & Vision](https://kirha.com/providers/mistraldocuments.md)

Ask questions about a document and get AI-powered answers. Supports document analysis, information extraction, and Q&A.

## Run it with the CLI

```bash
kirha tools run mistraldocuments_questionDocument \
  --input '{
    "documentUrl": "<documentUrl>",
    "question": "<question>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "mistraldocuments_questionDocument",
  "input": {
    "documentUrl": "<documentUrl>",
    "question": "<question>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "documentUrl": {
      "description": "URL of the document to query (supports PDF, PNG, JPEG, AVIF, PPTX, DOCX, max 50MB, 1000 pages max)",
      "type": "string"
    },
    "question": {
      "description": "The question to ask about the document",
      "type": "string"
    }
  },
  "required": [
    "documentUrl",
    "question"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "answer": {
      "description": "AI-generated answer to the question about the document",
      "type": "string"
    },
    "context": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "answer"
  ],
  "type": "object"
}
```

-----

[All Mistral Document & Vision tools](https://kirha.com/providers/mistraldocuments.md) · [< Back to tools list](https://kirha.com/tools.md)