Skip to main content
Glama
thebtf

netcoredbg-mcp

by thebtf

ui_send_keys

Send keyboard input to UI elements with modifier keys (Ctrl, Alt, Shift) and special keys. Target by AutomationId, Name, or control type.

Instructions

Send keyboard input to a UI element.

Note: If app is STOPPED at breakpoint, resume with continue_execution() first.

Tries cached coordinates first (click to focus, then send keys), then falls back to pywinauto element search.

Key syntax (modifiers are PREFIX characters, special keys in braces):

  • Regular text: "hello world"

  • Modifiers: ^ = Ctrl, % = Alt, + = Shift

  • Alt+Z: "%z" Alt+F4: "%{F4}"

  • Ctrl+C: "^c" Ctrl+Shift+S: "^+s"

  • Shift+Tab: "+{TAB}"

  • Special keys: {ENTER} {TAB} {ESC} {DELETE} {BACKSPACE}

  • Arrow keys: {LEFT} {RIGHT} {UP} {DOWN}

  • Navigation: {HOME} {END} {PGUP} {PGDN}

  • Function keys: {F1} {F2} ... {F12}

  • Combined: Ctrl+End = "^{END}", Alt+Z = "%z"

IMPORTANT: Modifier prefixes (^%+) apply to the NEXT character or {KEY}. For Alt+Z send "%z" (NOT "{ALT}z" or "Alt+Z").

Args: keys: Keys to send (see syntax above) automation_id: Target element's AutomationId name: Target element's Name control_type: Target element's control type

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keysYes
automation_idNo
nameNo
control_typeNo
root_idNo
xpathNo
Behavior4/5

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

Discloses fallback behavior: tries cached coordinates first, then pywinauto element search. Also explains key syntax modifiers in detail. Adds value beyond sparse annotations (only openWorldHint). Missing: side effects on window focus, waiting behavior.

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

Conciseness3/5

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

Well-structured with sections and front-loaded note, but the key syntax section is extensive and could be condensed. Overall adequate but verbose.

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?

Given 6 parameters, no output schema, and low schema coverage, the description is incomplete. It covers 'keys' well but ignores other parameters, return value, error conditions, and prerequisites. Sibling tools exist but no explicit differentiation.

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?

Only the 'keys' parameter is described in depth with syntax examples. The other 5 parameters (automation_id, name, control_type, root_id, xpath) are merely listed without explanation. Schema has 0% description coverage, so the description carries full burden but fails to add meaning for most parameters.

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?

The description clearly states 'Send keyboard input to a UI element' and explains the fallback mechanism and key syntax. It does not differentiate from sibling tools like ui_send_keys_focused, but the purpose is specific and actionable.

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?

Includes a crucial 'Note' about resuming execution if app is at breakpoint, providing clear when-not-to-use guidance. Does not explicitly compare to alternatives like ui_send_keys_batch, but the context is helpful.

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/thebtf/netcoredbg-mcp'

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