> For the complete documentation index, see [llms.txt](https://support.attackforge.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.attackforge.com/app/modules/ai-mcp-and-skills/get-file.md).

# Get File

#### Description <a href="#description" id="description"></a>

This tool can be used to get the metadata and binary content of an AttackForge File by supplying its id. This is useful for retrieving evidence files attached to vulnerabilities or files attached to writeups.

#### How To Enable <a href="#how-to-enable" id="how-to-enable"></a>

1. Go to `Users`
2. Select the user you would like to provide access to this tool
3. Click on `Access > MCP`
4. Click on `Add Tools`
5. Select the tool `get_file` and click `Add`

#### Example Prompts <a href="#example-prompts" id="example-prompts"></a>

***Prompt 1***

*Get all the AttackForge vulnerabilities for project "ACME Corp. Web App Pentest". For every vulnerability, do the following:*

* *show me all of the evidence files on the vulnerability. For every evidence file, do the following:*&#x20;
  * *show file name, file type and file size.*
  * *retrieve and display the file if it is an image*

***Prompt 2***

*Download the evidence file with ID 699ff11c529fc71046260673.* *Show me the metadata for the file attached to this vulnerability.* *What is the file name and size of evidence file ID 699ff11c529fc71046260673?* *Get the hash and mime type for a specific file.* *Retrieve the evidence image from this vulnerability.* *Show me when this evidence file was last modified.*

#### Supported Query Fields <a href="#supported-query-fields" id="supported-query-fields"></a>

```javascript
id: {
  description: 'This relates to the "id" field of evidence and files present in tools find_vulnerabilities and find_writeups respectively.',
  type: 'string',
  pattern: '^[0-9a-fA-F]{24}$',
}
```

#### Supported Response Fields <a href="#example-response" id="example-response"></a>

```
id
created
modified
name
mimeType
hash
size
storage_name
storage_location
caption
data
```

#### Example Response <a href="#example-response" id="example-response"></a>

{% code overflow="wrap" %}

```json
{
    "id": "699ff11c529fc71046260673",
    "created": "2026-02-26T07:07:08.366Z",
    "modified": "2026-02-26T07:07:10.175Z",
    "name": "evidence 1.png",
    "mimeType": "image/png",
    "hash": "b30689526a550266da762212c58ba5860af94ac6563cae65cfe6f9f24c2b62e3",
    "size": 309447,
    "storage_name": "h1nn93hfdy1bdpdxrmsbfbnhdiq9ckdzy3rqmxvhatcgofwd0ii6fpyfxlcdwkgzh7bo2zdxoydh17l4gopsxzzzryg4intnvhmx6ctoorthv7uqias3prs3qwr3doys",
    "storage_location": "test-attackforge-dev/issues/2026-2-26/6972b31b8e7d46a8089d9b53",
    "caption": "Screenshot of the vulnerability",
    "data": "&lt;base64 encoded binary content&gt;"
}
```

{% endcode %}


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://support.attackforge.com/app/modules/ai-mcp-and-skills/get-file.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
