FG—01AI Design Field Guide

Search the field guide

Search chapters, principles, patterns, worksheets, and glossary terms

PTN—07

Context Attachment

Let people ground a request in specific material — files, selections, screens — instead of describing it.

The hardest part of most prompts is not the instruction; it is the context. Describing a spreadsheet, a codebase, or a design in prose is slow and lossy, and the model fills the gaps with guesses. Context attachment replaces description with reference: drag a file in, @-mention a document, point at a selection, and the request becomes “do this to that” instead of a paragraph of scene-setting.

Attachment is also the honest way to scope an answer. A model with the actual quarterly report attached answers from the report; a model working from your summary of it answers from your summary. Products that make attachment first-class — a visible chip in the composer, not a buried upload flow — get shorter prompts, better answers, and fewer hallucination complaints, because the person controlled what the model saw.

The design work is in making attached context legible and revocable. Every attachment should render as a discrete, named object the person can inspect and remove before sending. When the system pulls context implicitly — the open file, the current page, recent history — it owes the person the same visibility. Implicit context that is invisible is how you get answers about the wrong document and a user who cannot tell why.

Anatomy

Fig. 01Context AttachmentLive specimen

Type @ to reference a customer, invoice, or job by name.

  • AUTOThis week’s schedule

1 context item will be sent with this prompt.

A composer with attached context rendered as inspectable, removable chips above the input.

  1. 1Attachment chips. Each piece of context is a named, discrete object — file name and type visible, never a mystery blob.
  2. 2Remove control. Every chip can be removed before sending. Attaching is a decision the person can reverse.
  3. 3Add affordance. An explicit attach entry point in the composer, alongside drag-and-drop and @-mention paths to the same result.
  4. 4Implicit context indicator. Context the system pulled on its own — the open file, the current selection — is shown with the same visibility as manual attachments.

When to use

Design considerations

Pitfalls

In the wild

Claude
Files and images attach as chips in the composer, and Projects hold persistent context documents the model draws on across conversations.
Cursor
@-mentions pull specific files, folders, or docs into a request, so “fix this” is scoped to exact code rather than a prose description of it.
ChatGPT
Drag-and-drop file upload turns spreadsheets and PDFs into first-class conversation context, with attachments visible on the sent message.
Notion AI
Answers questions grounded in the workspace itself — pages and databases are the context, no manual upload step required.
Perplexity
Attached files scope search-backed answers to your material, blending uploaded context with cited web sources.

Principles served