pub const OUTPUT: &str = "# zag output\n\nExtract the final result text from a session.\n\n## Synopsis\n\n zag output [session-id] [options]\n zag output --latest\n zag output --name <NAME>\n zag output --tag <TAG>\n\n## Description\n\nPrints the last assistant message text from a session, making it easy to use session results in shell pipelines without parsing JSON.\n\nIf no targeting flag is provided, defaults to the latest session.\n\n## Arguments\n\n session-id Session ID to extract output from (optional)\n\n## Flags\n\n --latest Use the most recently created session\n --name <NAME> Find session by name\n --tag <TAG> Extract output from all sessions with this tag\n --json Output as JSON with session ID metadata\n -r, --root <PATH> Root directory for session resolution\n\n## Examples\n\n # Get the result of a specific session\n zag output $sid\n\n # Get result of the latest session\n zag output --latest\n\n # Use in shell pipelines\n result=$(zag output $sid)\n\n # Get output from all sessions with a tag\n zag output --tag batch\n\n # JSON output with metadata\n zag output $sid --json\n\n # Find session by name\n zag output --name backend-agent\n\n## See Also\n\n`zag collect`, `zag pipe`, `zag events`\n";