capture
Copy pagePrints the last lines of the agent pane in a worktree, as plain text.
workrex capture <name> [--lines <n>]Arguments
Section titled “Arguments”<name>: Worktree name. Useproject:handleto reach an agent in another project.
Options
Section titled “Options”| Flag | Description |
|---|---|
-n, --lines <n> | Number of lines to print. Default: 200. |
capture strips ANSI escape codes and trailing blank lines before it keeps the last <n> lines.
For a workspace on a remote server, capture reads the remote agent’s pane.
Under Rex, capture reads the block’s full scrollback and keeps the last lines.
Examples
Section titled “Examples”# Print the last 200 lines of an agent's outputworkrex capture user-auth
# Print the last 50 linesworkrex capture user-auth -n 50
# Read an agent in another projectworkrex capture myproject:docs-update