BUILD / copy-a-response-with-copy-in-grok-build

Build

Copy a response with /copy in Grok Build

Copy a response with /copy in Grok Build

/copy [N] copies the last (or Nth-latest) response to the clipboard. Official: Modes and Commands.

Run it

  1. Open a Grok Build session (grok in the project, or resume with grok -c).
  2. After the agent answers, type /copy and send to put the last response on the clipboard.
  3. For an earlier answer, pass an index: /copy 2 for the 2nd-latest, /copy 3 for the 3rd-latest, and so on.
/copy
/copy 2

Paste into your editor or terminal with the usual paste shortcut for your OS.

Related copy paths

Control What it does
/copy [N] Copy the last (or Nth-latest) response to the clipboard
/export Export the conversation to a file or clipboard
Scrollback y / Shift+Y Copy content / command from scrollback (Keyboard Shortcuts)

Pitfalls

  • Omitting the index when you meant an older turn — bare /copy always takes the latest response.
  • Confusing /copy with /export/export ships the whole conversation; /copy targets one response.