Skip to main content
Glama
tiefeiyu
by tiefeiyu

process_screen

Get a clean snapshot of a PTY screen. Avoid garbled fragments from full-screen TUIs (vim, htop, less). The snapshot stays queryable after exit.

Instructions

Snapshot the live screen of a PTY process. For full-screen TUIs (vim, htop, less): the record stream is garbled fragments — use this tool instead of process_read. Screen remains queryable after exit until process_cleanup. Snapshot is pure; passing cols/rows resizes the live PTY first. buffer is 'primary' or 'alternate' (the TUI's alternate screen).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesInternal process ID.
colsNoOptional: resize width first.
rowsNoOptional: resize height first.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of disclosing behavior. It states that the snapshot is pure but that passing cols/rows resizes the live PTY, and that the screen stays queryable until process_cleanup. It also explains buffer semantics. However, it does not describe the return value format, so it is not a perfect 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose and packs a lot of behavioral detail into a compact paragraph. The buffer sentence is somewhat terse and could be clearer, and the overall structure is a single dense block rather than separated sections, but it remains efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers when to use the tool, side effects, lifecycle, and parameter effects, which is strong for a tool with no output schema. The main gaps are the missing buffer parameter in the schema and the lack of an explicit return format, keeping it from being fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema descriptions are minimal, but the description adds meaningful context: cols/rows resize the live PTY first, and buffer is described as 'primary' or 'alternate'. However, the buffer parameter is not actually present in the input schema, which is a significant mismatch that prevents a perfect score.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Snapshot the live screen of a PTY process' with a specific verb and resource. It further distinguishes from the sibling tool process_read by explicitly mentioning the TUI use case, making the purpose unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says 'use this tool instead of process_read' for full-screen TUIs, providing a clear when-to-use instruction and naming the alternative. The note about the screen remaining queryable after exit also clarifies its lifecycle.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tiefeiyu/Portal'

If you have feedback or need assistance with the MCP directory API, please join our Discord server