terminal-capture-session-screen

Capture terminal session screen output as text, ANSI, or structured data.

19|14|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/X-School-Academy/skill-pilot --skill terminal-capture-session-screen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terminal-capture-session-screen
Source: https://github.com/X-School-Academy/skill-pilot/tree/main/core/skills/system/terminal-capture-session-screen
Command: npx skills add https://github.com/X-School-Academy/skill-pilot --skill terminal-capture-session-screen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill allows you to capture the current state and scrollback buffer of a running terminal session, enabling you to review output, check prompts, or extract data.

Core Features & Use Cases

  • Screen Capture: Get the visible content of a terminal session.
  • Scrollback Inclusion: Optionally include the history of the session that has scrolled off-screen.
  • Format Options: Retrieve output as plain text, raw ANSI escape sequences for color/styling, or a structured metadata object.
  • Use Case: After running a long script in a terminal, use this Skill to capture its final output and any errors that may have occurred.

Quick Start

Capture the visible screen of the terminal session with ID sess-abc123 in text format.

Frequently Asked Questions about terminal-capture-session-screen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I capture terminal session output including scrollback history?

To capture terminal session output, you provide a specific sessionId to retrieve the visible screen and optionally include the scrollback buffer in plain text, ANSI, or structured data formats.

Can I retrieve raw ANSI escape sequences from a terminal screen capture?

Yes, you can retrieve raw ANSI escape sequences from terminal screen capture. This format preserves color and styling information alongside the text output of the active session.

What is the best way to extract structured data from an active terminal session?

The best way to extract structured data from an active terminal session is to use a capture tool that returns a structured metadata object, requiring a valid sessionId to identify the target.

Do I need a sessionId to check terminal prompts and poll session results?

Yes, you need a sessionId to check prompts and poll session results. The sessionId identifies the specific target terminal session you want to capture output from.

How do I get the final output of a long running script from a terminal?

To get the final output of a long running script, capture the terminal session state using its sessionId. You can include the scrollback buffer to review any errors that scrolled off-screen.