> For the complete documentation index, see [llms.txt](https://docs.docontrol.io/docontrol-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docontrol.io/docontrol-user-guide/workflows/define-workflow-settings/action-settings/query/get-files-by-hash.md).

# Get files by hash

You can retrieve a list of Google Drive asset IDs according to matching file hash value.

1. From the **Actions** left pane, select **Query** **> Google Drive > Get files by hash,** drag the action to the canvas, and connect it to the previous action.<br>

   <div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FxxadpcpKIH0EX7MwnP8x%2Fget%20files%20by%20hash.png?alt=media&amp;token=b199a084-6165-4200-8d85-b115df518d49" alt="" width="515"><figcaption></figcaption></figure></div>
2. Add a step description (optional).
3. Define the action settings:
   * **File hash -** You can change the file hash by clicking the **Plus**  <img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FMFokaiNx127HyZD93Ph3%2Fplus%20icon%202.png?alt=media&amp;token=6bd9644a-ea2a-4969-81de-0a49a61b3dd7" alt="" data-size="line"> icon to add [dynamic values](/docontrol-user-guide/workflows/define-workflow-settings/action-settings.md#dynamic-data) to include details from the event.
   * **Error handling** - Define how to proceed in case an error occurs.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docontrol.io/docontrol-user-guide/workflows/define-workflow-settings/action-settings/query/get-files-by-hash.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
