---
title: "Attachment | AgentRQ Glossary"
url: https://agentrq.com/glossary/attachment
description: "An attachment is a file or binary payload sent alongside an agent task or message, allowing agents and humans to share screenshots, logs, diffs, and other artifacts during collaboration."
---

[Back to Glossary](https://agentrq.com/glossary/)

# Attachment

An **attachment** is a file or binary payload associated with an agent [task](https://agentrq.com/glossary/task) or message. Attachments let AI agents and humans share artifacts — screenshots, log files, diffs, error reports, or any other binary content — as part of their collaboration workflow.

## Why Attachments Matter

Text alone is often insufficient for agent-human collaboration. An agent might need to:

- → Share a screenshot of a UI bug it discovered
- → Attach a log file that explains a crash
- → Send a diff of proposed code changes for review
- → Upload a generated report or export

Attachments bridge the gap between the agent's work environment and the human reviewer.

## Attachments in AgentRQ

AgentRQ supports attachments on tasks and messages. When a [Claude Code](https://agentrq.com/glossary/claude-code) agent calls the AgentRQ [MCP](https://agentrq.com/glossary/mcp) tool, it can include file references that are uploaded and made available for download on your [task board](https://agentrq.com/glossary/task-board).

To fetch an attachment, call the `task` MCP tool with the `getAttachment` action and the attachment's ID. It returns the file's public link by default, or its content as base64 when asked.

## Common Attachment Types

- → **Screenshots** — visual proof of UI state or test failures
- → **Log files** — raw output from builds, tests, or deployments
- → **Diffs / patches** — proposed code changes for human review
- → **Reports** — structured summaries generated by the agent
- → **Config files** — proposed configuration changes awaiting approval

## Related Terms

- → [Task](https://agentrq.com/glossary/task)
- → [Bidirectional Messaging](https://agentrq.com/glossary/bidirectional-messaging)
- → [Approval](https://agentrq.com/glossary/approval)
- → [MCP Tool](https://agentrq.com/glossary/mcp-tool)
