> For the complete documentation index, see [llms.txt](https://tailwindsdocs.innovativesol.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tailwindsdocs.innovativesol.com/readme/chatflows/llamaindex/tools/query-engine-tool.md).

# Query Engine Tool

Turns Query Engine into a Tool which can then be used by [Sub-Question Query Engine](/readme/chatflows/llamaindex/engine/sub-question-query-engine.md) or Agent.

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2Fgit-blob-dc53fe76f0cf3cc1e636c58d87818a17a8e8f7d6%2Fimage%20(9)%20(1)%20(1)%20(1)%20(2).png?alt=media" alt=""><figcaption></figcaption></figure>

## Inputs

* Vector Store Index

## Parameters

| Name             | Description                                         |
| ---------------- | --------------------------------------------------- |
| Tool Name        | Name of the tool                                    |
| Tool Description | A description to tell when LLM should use this tool |

## Outputs

| Name            | Description                                                                                                                |
| --------------- | -------------------------------------------------------------------------------------------------------------------------- |
| QueryEngineTool | Connecting point to Agent or [Sub-Question Query Engine](/readme/chatflows/llamaindex/engine/sub-question-query-engine.md) |
