Skip to main content
Glama

ui_find

Search the current screen for UI elements by text, resource-id, content-desc, class, or clickability without tapping; returns tap coordinates.

Instructions

Search the current screen for elements by text / resource-id / content-desc / class / clickable, without tapping. Returns tap coordinates.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ui_find"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoSubstring of text (case-insensitive)
exactNoRequire exact text match
freshNoBypass the short-lived hierarchy cache
clickableNoOnly clickable (true) / non-clickable (false)
class_nameNoSubstring of class, e.g. 'Button'
resource_idNoSubstring of resource-id, e.g. 'btn_login'
content_descNoSubstring of content-desc

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description does carry the essential non-mutation fact ('without tapping') and the return shape ('tap coordinates'), which is real value. It omits what happens on zero matches, whether it waits or snapshots once, how multiple matches are ordered, and how the short-lived hierarchy cache (referenced only by the 'fresh' parameter) affects freshness.

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 short sentences, front-loaded with the action and its scope, then the output. Nothing is padded and no sentence is redundant.

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

Completeness3/5

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

There is no output schema, so 'Returns tap coordinates' usefully covers the return, and the no-tap guarantee covers safety in the absence of annotations. For a 7-parameter screen query, though, combination semantics, multi-match behavior, and staleness/cache effects are all left unexplained.

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 coverage is 100%, so all seven parameters are already documented, and the description merely re-lists five selector dimensions. It adds no semantics the schema lacks — notably it never says whether multiple criteria are ANDed or ORed, which is the main behavioral question a caller has for a multi-filter search.

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 concrete verb (search) and resource (current screen elements), enumerates the selector dimensions, and adds the crucial scope qualifier 'without tapping' plus the return value. An agent can distinguish it from tap/long_press by that phrase, though it never names a sibling outright.

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?

Usage is only implied: 'without tapping' and 'Returns tap coordinates' suggest the find-then-tap workflow, but there is no explicit 'use this when..., use ui_dump or ui_wait instead when...' guidance. An agent must infer that this is the query step preceding tap and that ui_wait exists for waiting on elements.

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