Skip to main content
Glama
tiefeiyu
by tiefeiyu

qt_keyboard_input

Send keyboard input as typed text to a Qt UI element, triggering real app behavior and overwriting existing content. Requires element focus; use qt_focus first if needed.

Instructions

Send keyboard input (typed text) to a UI element.

Real input: the text lands in whatever the target would receive — it can overwrite existing text and trigger real app behaviour. If element_id is 0 or does not resolve, the input goes to the widget that currently has focus (be careful: a stale id silently redirects the text). Widgets that rely on focus (QLineEdit etc.) may ignore input to an unfocused element — call qt_focus first when text does not land. Use qt_key_combo for shortcuts like Enter or Ctrl+C.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
modifiersNo
element_idYes
session_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description carries the full burden and does so excellently. It discloses that input is real, can overwrite existing text, triggers real app behavior, may silently redirect on stale element_id, and that focus-dependent widgets may ignore input. This is rich, safety-relevant behavioral context beyond any schema.

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 compact and front-loaded with purpose, then adds necessary behavioral caveats. Every sentence earns its place: real-input warning, focus fallback, focus-dependent widgets, and the qt_key_combo alternative. No fluff or 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?

The description is largely complete given the output schema exists (so return values need not be described) and the core behavior is well covered. However, the missing semantics for modifiers and session_id create a real gap for an agent trying to invoke the tool correctly with all parameters. Still, the main usage path and key pitfalls are clearly covered.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate. It explains element_id semantics (0/unresolved → focused widget, stale id redirect) and text behavior (typed, can overwrite), but it does not describe the modifiers parameter (accepted values or combination rules) or session_id. This is partial compensation; two of four parameters remain semantically under-specified.

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 opens with a specific verb+resource: 'Send keyboard input (typed text) to a UI element.' It clearly identifies the primary action and object, and distinguishes itself from the sibling qt_key_combo by explicitly carving out shortcuts for that tool.

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?

It provides explicit usage guidance: use for typed text, use qt_key_combo for shortcuts like Enter or Ctrl+C, and call qt_focus first when text does not land. It also explains the fallback behavior when element_id is 0 or unresolved, which helps an agent decide when to invoke this tool.

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/qt-commander'

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