Skip to main content
Glama
yiwenlu66
by yiwenlu66

send_control

Send a control character (Ctrl+C, Ctrl+D, Ctrl+Z, Ctrl+L, or ESC) to an active terminal session to interrupt, terminate, suspend, clear, or escape, then wait for the terminal to become idle before returning.

Instructions

Send a control character to the terminal.

Requires an existing session created via create_session(session_id, cwd).

Keys:

  • c sends Ctrl+C, commonly used to interrupt.

  • d sends Ctrl+D (EOF in many programs).

  • z sends Ctrl+Z (job control suspend).

  • l sends Ctrl+L (clear screen in many shells).

  • [ or escape sends ESC.

After sending the control character, this drains newly produced PTY bytes until the PTY is silent for PILOTY_QUIESCENCE_MS (default 1000ms) or until deadline_s expires.

deadline_s must be at most 300 seconds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
deadline_sNoTotal wall-clock budget in seconds. Must be between 0 and 300.
session_idYes
Behavior4/5

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

With no annotations, the description fully covers behavioral details: it explains the draining of PTY bytes until quiescence or deadline expiry, and specifies defaults for quiescence timeout and deadline limit. It could mention error handling or return behavior, but overall transparent.

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

Conciseness5/5

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

The description is concise and well-structured: a brief opening, bullet-point key list, and a paragraph on draining. Every sentence adds value without redundancy.

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?

Given no output schema, the description covers sending, draining, and timeout. It lacks explicit mention of return output or error conditions (e.g., invalid key), but overall sufficient for agent invocation.

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 description coverage is only 33% (only deadline_s documented). The description compensates by enumerating valid key values and their meanings, and clarifying session_id as required from an existing session. deadline_s is elaborated with context about draining.

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 'Send a control character to the terminal,' specifying the verb and resource. It lists the supported keys (c, d, z, l, [, escape) and their effects, distinguishing this tool from siblings like send_text, send_line, etc.

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

Usage Guidelines4/5

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

The description explicitly requires an existing session via create_session, and constrains deadline_s to at most 300 seconds. While it doesn't explicitly list alternatives or when-not-to-use, the context and sibling tool names imply that this is for control characters only.

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/yiwenlu66/PiloTY'

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