Skip to main content
Glama
secemp9
by secemp9

kitty_get_text

Retrieve text content from a kitty terminal window. Supports visible screen, full scrollback, selected text, or last command output with optional ANSI formatting.

Instructions

Retrieve text content from a kitty window. Supports multiple extent modes: "screen" (visible content), "all" (screen + scrollback), "selection" (selected text), "last_cmd_output" (output of most recent command), and more. When extent is "all", output is truncated to max_lines (keeping most recent lines) to prevent overwhelming context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ansiNoInclude ANSI formatting/color codes in the output.
selfNoGet text from the window this command runs in.
matchNoWindow match expression (e.g. "title:my_term").
extentNoWhat text to retrieve. Default: "screen" (visible content). "all" includes full scrollback. "last_cmd_output" gets output of the most recent shell command (requires shell integration).
max_linesNoMaximum lines to return. When exceeded, oldest lines are truncated. Default: 50000.
add_cursorNoAdd cursor position and style as ANSI codes.
clear_selectionNoClear the selection after retrieving it.
add_wrap_markersNoAdd carriage returns at line-wrap positions.
Behavior4/5

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

Without annotations, the description discloses truncation for 'all' extent and requirement of shell integration for 'last_cmd_output', adding good transparency for a read-only tool.

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 two sentences with front-loaded purpose; the list of extent modes is necessary but slightly long, making it concise overall.

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 key behaviors (extent modes, truncation) and parameter purpose, though it omits return format and a few extent mode details. Ready for use.

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 coverage is 100%, but the description adds value by explaining extent modes (e.g., 'screen' as visible content) and truncation logic beyond the schema's enum descriptions.

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 the tool retrieves text from a kitty window, specifies multiple extent modes, and distinguishes from siblings like kitty_get_tab_text and kitty_get_colors.

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

Usage Guidelines3/5

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

The description explains extent modes and truncation behavior but does not explicitly state when to use this tool versus alternatives or when not to use it.

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/secemp9/kitty-mcp-server'

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