Skip to main content
Glama

Wait until text appears on screen

devilge_wait_for_text
Read-only

Poll the Android UI dump until a node with specified text appears. Returns match status and node details without throwing errors.

Instructions

Polls the UI dump until a node whose text or contentDescription matches appears, or the timeout elapses. Returns {matched, attempts, elapsedMs, matchedNode?}. Never throws — the caller branches on matched.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to wait for.
serialNoDevice serial. Defaults to DEVILGE_DEFAULT_DEVICE_SERIAL or the only attached device.
containsNoSubstring match. Default true.
timeoutMsNoMax wait in ms (500..60000). Default 10000.
Behavior4/5

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

Annotations already mark readOnlyHint=true and destructiveHint=false. The description adds that the tool never throws and returns a structured object with matched, attempts, elapsedMs, and matchedNode. This provides additional behavioral context beyond 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?

Two sentences: first explains the polling mechanism, second explains the return value and non-throwing guarantee. No wasted words, front-loaded with key information.

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?

The description covers the return shape and behavior, which compensates for the lack of an output schema. It mentions the polling and timeout behavior. The serial default is documented in the schema. A note about the default serial could be added, but the description is largely 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 adds that matching applies to both text and contentDescription, which is not in the text parameter description. However, this is a minor addition; the schema already covers the parameters adequately.

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 polls UI dump until text or contentDescription matches, specifying the return object and behavior. This distinguishes it from sibling tools like devilge_wait_for_resource_id and devilge_wait_for_idle.

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 implies usage for waiting for text, but does not explicitly contrast with alternatives like waiting for resource ID or idle. Given the sibling list, a brief when-to-use note would improve clarity, but the purpose is still clear.

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/Yercko/devilge'

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