Skip to main content
Glama
aipm-engine

AI Process Manager

by aipm-engine

ui_find

Read-only

List interactive UI elements in a window, filter by role or name, get stable element indices and action flags for automation.

Instructions

List interactive UI elements in a window (buttons, fields, menus first; grid cells last). Each item has a stable global element_index plus can_invoke/can_set_value flags. Paginated (total/offset/limit/has_more). Read-only — no action tier required. Pass element_index to ui_invoke/ui_set_value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hwndNoExact window handle
roleNoFilter by role (Button, Edit, MenuItem, ...)
limitNoPage size (default 30, max 200)
offsetNoPagination offset (default 0)
name_containsNoFilter elements by name
title_containsNoWindow title fragment
Behavior5/5

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

Beyond the annotations (readOnlyHint, destructiveHint, openWorldHint), it adds valuable context: stable global element_index, pagination behavior (total/offset/limit/has_more), result ordering, and that no action tier is required. These details significantly enhance understanding without contradicting the annotations.

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 yet information-dense: four sentences cover the listing scope, item attributes, pagination, and usage. Each sentence provides unique value, with the main action front-loaded and no redundant filler.

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?

Without an output schema, the description explains the return structure (element_index, flags, pagination metadata) and how to consume results. It could be more explicit about requiring hwnd but implicitly states the tool operates on a window, so it is largely complete.

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?

The input schema provides 100% coverage for all 6 parameters with descriptions. The description adds general pagination context and the element_index usage but does not elaborate on individual parameters beyond the schema, meeting the baseline.

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 uses the specific verb 'List' with the resource 'interactive UI elements in a window' and includes ordering (buttons, fields, menus first; grid cells last). It clearly differentiates from siblings by stating that element_index is passed to ui_invoke/ui_set_value, distinguishing its role as a discovery tool.

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?

It provides clear context by stating it is read-only with no action tier required, and explains the output can be used with ui_invoke/ui_set_value. However, it does not explicitly mention when not to use it or compare directly to get_ui_tree, leaving some room for ambiguity.

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/aipm-engine/AIPM'

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