Skip to main content
Glama
verisoft-ai

windows2-mcp

by verisoft-ai

find_child_element

Read-only

Locate a UI element within a specific parent's subtree to avoid ambiguous selectors. Specify a strategy like accessibility ID, name, or XPath to narrow the search reliably.

Instructions

Find a child element scoped to a known parent element's subtree. Use when the same selector exists in multiple parts of the UI and you need to narrow the search. Preferred strategy order for reliable automation: 1) "accessibility id" (AutomationId) — most stable, use whenever available 2) "name" — good for static labels not subject to localization 3) "xpath" — flexible fallback, e.g. //Button[@Name="OK"] 4) other strategies — use only when the above are unavailable. After interacting with an element you plan to use in generated test code, call get_element_info to capture the best locator.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYesThe selector value for the chosen strategy
strategyYesLocator strategy. "accessibility id": Maps to UIA AutomationId — most stable selector, preferred for test automation. Use when the element has a non-empty AutomationId. | "name": Maps to UIA Name property (visible label/title). Reliable when text is static and not locale-dependent. | "id": Alias for accessibility id — maps to UIA AutomationId. | "xpath": Evaluates XPath against the live UIA tree. Use as fallback when no stable AutomationId or Name exists. Example: //Button[@Name="OK"] | "class name": Maps to UIA ClassName — rarely unique on its own; use to narrow results when combined with other strategies. | "tag name": Maps to UIA ControlType (e.g. "Button", "Edit", "TextBlock"). Rarely unique; useful for finding all elements of a type. | "-windows uiautomation": Raw UIA condition expression for advanced compound queries.
parentElementIdYesElement ID of the parent to search within
Behavior3/5

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

The annotation 'readOnlyHint: true' already signals that this tool does not modify the UI. The description adds value by scoping behavior to a parent subtree and recommending post-interaction actions, but does not elaborate on whether the tool can return multiple elements, how it handles missing elements, or performance considerations. Since the annotation covers the safety profile, a 3 is appropriate.

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 at three sentences with no wasted words. It front-loads the core purpose, immediately provides usage context, and delivers actionable guidance in a structured numbered list. Every sentence adds value.

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 the parameter schema covers all details and an output schema does not exist (so return value is implicitly an element), the description is nearly complete. It misses a brief note on what happens when no child is found (error vs null), but for a scoped lookup tool with full schema coverage, it is sufficient.

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 100%, so the baseline is 3. The description does not add additional meaning beyond what the schema already provides for each parameter (e.g., 'strategy' enum values are explained in detail in the schema). The description focuses on strategy ordering and usage, not on parameter format or constraints.

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 tool finds a child element within a known parent's subtree. It explicitly distinguishes this from sibling tools like 'find_element' (unscoped) and 'find_elements' (multiple results) by emphasizing the scoping to a parent element.

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?

The description explicitly states when to use this tool ('when the same selector exists in multiple parts of the UI') and provides a prioritized strategy order for reliable automation (accessibility id > name > xpath > other). It also advises to call 'get_element_info' after interaction to capture the best locator, offering clear best-practice guidance.

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/verisoft-ai/windows2-mcp'

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