grok-build-upstream-mirror/crates/codegen/xai-grok-pager/docs/tutorial/03-attach-and-paste.md

26 lines
743 B
Markdown
Raw Normal View History

Synced from monorepo Synced from monorepo Changes: - Workspace server: report `/ready` as failed with dwell on hub connect failure - Refresh OIDC token for the Grok agent in the shell - ACP terminal output recorder - Cross-platform provider auth commands in the shell - Default `/resume` to Grok sessions with a hint for hidden external sessions - Resume sessions by title with `--resume` - Limit app-builder archive size - Data-driven tag labels for slash commands - Doctor fixes for tmux - Custom provider gateways and subprocess environment policy in the shell - `/tutorial` — opt-in onboarding tour of Grok Build - Soft and required CLI version checks in the shell - Privacy banner env overrides survive live settings updates - Add remote flag to override the image-edit model - Return profile fields from auth info even when the access token is expired - Add edit control on queued prompt rows - Keep fail-closed policy when clearing orphans with no team - Setting to disable the Ctrl+Space/F8 voice shortcut - Pass `--raw` to pw-record so Linux dictation works on older PipeWire - Validate git URLs when adding marketplace entries - Stop shipping stale tool-doc parameter and tool names - Re-point dashboard attach after `/fork` only when the parent was attached - Surface Grok Computer media-generation results as file-path chunks - Clear web background-task tray on kill and keep the task description - Show privacy upsell banner in agent view until acted on - Add tools-server client callback surface - Protect persistent global hook sources Source-Revision: 95d84f443eddcbed6cbfd6eed22e2eafe6b3939d
2026-07-23 17:12:33 +00:00
# Attach Files, Images & Paste
The more precisely you point Grok at the right context, the better the
result. Three ways to get things into the prompt:
## Mention files with `@`
Type `@` for a fuzzy file picker — line ranges work too:
```
@src/main.rs attach a file
@src/main.rs:10-50 attach specific lines
@!.env reach hidden files with @!
```
## Paste images
Paste a screenshot straight into the prompt: `Cmd+V` on macOS, `Ctrl+V` on
Linux, `Alt+V` on Windows. Great for error dialogs, designs, and diagrams.
## Run shell commands yourself
Type `!` on an empty prompt to run a shell command directly — the output
lands in the scrollback where Grok can see it too.
*Go deeper: `/docs Getting Started`*