Skip to main content
Glama

adb_scroll_until

Scroll through long lists or scrollable content until a target element is found, then optionally tap it. Automates repeated swiping and UI hierarchy checks to locate elements by text, resource ID, or content description.

Instructions

Scroll the screen repeatedly until a target element is found. Performs a swipe gesture, then checks the UI hierarchy for the target. Repeats until found or max iterations reached. Useful for finding elements in long lists or scrollable content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoMatch elements containing this text (case-insensitive)
resourceIdNoMatch elements with this resource-id (partial match)
contentDescNoMatch elements with this content-description (partial, case-insensitive)
directionNoScroll direction (default 'down' = content moves up, revealing lower items)down
maxScrollsNoMaximum scroll attempts (1-50, default 10)
tapWhenFoundNoAutomatically tap the element when found
deviceNoDevice serial
Behavior4/5

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

With no annotations, the description discloses the iterative process: swipe, check UI hierarchy, repeat until found or max iterations. It also mentions the tapWhenFound option. It does not detail failure behavior (e.g., returns null), but covers the core loop transparently.

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 three sentences, front-loading the main action. Every sentence adds value: first states purpose, second explains the loop, third gives use case. No fluff.

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 no output schema and no annotations, the description covers the essential behavior. Minor gap: what happens if element not found (e.g., returns empty or error). But overall complete for the tool's purpose.

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 baseline 3. The description adds no additional meaning to the parameters beyond the schema's descriptions (e.g., 'text' case-insensitive, 'direction' enum).

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 scrolls repeatedly to find a target element, distinguishing it from sibling tools like adb_ui_find (no scrolling) and adb_input_fling (no element checking). It uses specific verbs 'scroll' and 'find' with the resource 'screen' and 'UI hierarchy'.

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 provides context by stating it is 'useful for finding elements in long lists or scrollable content', which guides when to use. However, it does not explicitly mention when not to use or list alternatives, though the sibling list implicitly provides options.

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/fullread/DeepADB'

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