Skip to main content
Glama
codingmachineedge

lowlevel-computer-use-mcp

win_set_control_text

Idempotent

Set a control's text directly via WM_SETTEXT, using its window handle from list_child_windows, without requiring focus or bringing the window forward.

Instructions

Set a control's text directly via WM_SETTEXT (reliable, no focus needed).

Pass the control's hwnd (from list_child_windows) - e.g. the Edit control of a background Notepad - to replace its text without bringing the window forward.

Args: params (WinSetTextInput): target control by hwnd (preferred) or title, plus text.

Returns: str: JSON {"ok": true, "target_hwnd": N, "text_len": N}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations indicate write operation (readOnlyHint=false) and non-destructive (destructiveHint=false), idempotent. Description adds important context: 'reliable, no focus needed', 'without bringing the window forward', and specifies the return format (target_hwnd, text_len). No contradictions.

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?

Two paragraphs with front-loaded key insight. No unnecessary words. Includes example and return description. Efficient and clear.

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

Completeness5/5

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

The description covers purpose, mechanism, target identification, background capability, and output format. For a tool with moderate complexity and a described output schema, it is fully adequate and leaves no significant gaps.

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?

The description adds value beyond the schema by stating 'target control by hwnd (preferred) or title' and referencing list_child_windows for hwnd. Schema already includes descriptions for each parameter, so the description reinforces and contextualizes.

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 purpose: 'Set a control's text directly via WM_SETTEXT' and emphasizes reliability and no focus needed. It distinguishes from sibling tools like win_send_keys (keystrokes) and type_text (typing with focus) by specifying background operation.

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 gives concrete usage: 'Pass the control's hwnd (from list_child_windows)' and provides a Notepad example. It implies when to use (background control text setting without focus) but does not explicitly exclude alternatives or state when not to use.

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/codingmachineedge/lowlevel-computer-use-mcp'

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