Skip to main content
prompt GP ChatGPT

list_elements — Claude Code prompt: what it does, how to install

The list_elements Claude Code prompt turns the current screen into a text list instead of a screenshot. Each item gets a reference for later actions.

Apache-2.0 ★ 9,488 updated 2026-11-16

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/list_elements.md
Open on GitHub

What list_elements does

The prompt describes visible screen elements in text and assigns each one a reference such as @eN. To act on an item, provide its reference along with the list’s snapshotId. Coordinates follow a 0–999 grid, matching tap.

A ref_expired response means the screen has changed. Run observe or list_elements again, then use the refreshed references. In Claude Code, place the prompt file at .claude/commands/list_elements.md.

What it helps with

  • read screen contents without a screenshot
  • get a reference for a screen element
  • refresh element references after the screen changes

Example prompts for the agent

  • List the current screen’s elements as text.
  • Find the target element and act on it using its reference and snapshotId.
  • List the screen elements again after a ref_expired response.

How to install list_elements

Manually: put the files in place

.claude/commands/list_elements.md

Questions about list_elements

How do I install list_elements in Claude Code?

Save the prompt file at .claude/commands/list_elements.md.

What does list_elements do?

It describes screen elements in text and assigns each a reference such as @eN. Actions use that reference together with the list’s snapshotId.

What should I do when an element reference expires?

After a ref_expired response, run observe or list_elements again and use the new references.

Source text

list_elements.md · Apache-2.0
List what is on this screen as text, without a screenshot. Each element comes with a ref (@eN); to act on one, pass its ref together with the snapshotId of this list. Positions use the same 0-999 grid as {{tap}}. When an action answers ref_expired, the screen has moved on: call {{observe}} or {{list_elements}} again and use the new refs.

© wangzan101 · Apache-2.0 · wangzan101/Mika

Similar prompts

All prompts for Browser and scraping →

From the same set132

The whole set →
knowledge_read The knowledge_read prompt for Claude Code and ChatGPT reads information about apps and websites. It opens an attachment or looks up a resource that has not been opened yet. GP ChatGPT ★ 9,488repo stars phone_find The phone_find Claude Code prompt scrolls a mobile app and searches its accessibility tree for text, a resource ID, or a role. It stops if the app changes or the content no longer moves. GP ChatGPT ★ 9,488repo stars run_command This Claude Code prompt runs shell commands in a Linux sandbox. Commands use /bin/sh -lc with /workspace as the working directory. GP ChatGPT ★ 9,488repo stars view_image The view_image Claude Code prompt answers questions about an image using only visible details. It describes the scene and transcribes legible text. GP ChatGPT ★ 9,488repo stars mika_open_file The mika_open_file Claude Code prompt opens workspace files in Mika’s built-in viewer. Show a report, screenshot, or downloaded document. GP ChatGPT ★ 9,488repo stars view_image The view_image Claude Code prompt sends an image to a vision model and reports its contents. It runs when a task requires reading text from an image or understanding what the image depicts. GP ChatGPT ★ 9,488repo stars phone_event phone_event — a prompt for Claude Code listens for accessibility window events on a task's virtual display or package notifications. The listener stays active only during the call and ignores past events. GP ChatGPT ★ 9,488repo stars scroll This Claude Code prompt scrolls a page or panel in a chosen direction. Ask it to move up, down, left, or right. GP ChatGPT ★ 9,488repo stars

Project sponsors

Companies that keep this analytics open