Skip to main content
Glama

desktop_type_text

Types text into a specific UI element, window pixel location, or the foreground app to automate data entry across desktop applications.

Instructions

Type text into a UIA element (element_token), a window pixel location (pid + x/y), or foreground app (scope='desktop').

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "desktop_type_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
pidNo
textYes
scopeNo
window_idNo
delivery_modeNo
element_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It identifies an input-injection action but says nothing about delivery_mode background versus foreground, focus requirements, whether text is inserted or replaces existing content, permission needs, or error behavior.

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 definition is a single sentence with no wasted wording, and it front-loads the action. The parenthetical listing of target modes is compact, though it could be easier to scan as separate clauses.

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

Completeness2/5

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

For a complex input-injection tool with 8 parameters, zero annotations, no output schema, and 0% schema parameter descriptions, the description is too thin. It conveys core targeting but omits delivery mode semantics, window_id usage, focus requirements, and success/error behavior needed for reliable invocation.

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

Parameters2/5

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

Schema description coverage is 0% across 8 parameters, so the description must compensate. It clarifies element_token, pid+x/y targeting, and scope='desktop', but leaves window_id, delivery_mode, and scope='window' unexplained; only partial compensation is provided.

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

Purpose4/5

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

States a specific verb and resource, 'Type text', and names three target mechanisms: UIA element_token, pid+x/y pixel location, and foreground scope='desktop'. It is clear what the tool does, but it does not explicitly differentiate itself from siblings such as desktop_clipboard or desktop_hotkey.

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 three targeting modes imply how to choose between UIA element, pixel coordinates, and foreground typing, which is useful guidance. However, there is no explicit when-to-use or when-not-to-use guidance, no prerequisites, and no comparison with alternative input tools.

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